Functions unable to load the $page object

Now I have tested your function.

Wrong in the docs, or incomplete?

In the docs it says nothing about kirby()->path(). I’ve found this: $request->path() | Kirby CMS

kirby()->path();
kirby()->request()->path();

These functions seems to work exactly the same?

Where your solution work

  • Works with standard pages.
  • Works with pages with get variables (ignores them). Get variables can still be get by get(). It works like expected.

Routes don’t work

Routed urls fail. Is there any way to call the router to get the original url, the url that $site->visit() wants?

I tried to use this:

http://getkirby.com/docs/toolkit/api/router/run

router::run($path);

I get this error:

Strict standards: Non-static method Router::run() should not be called statically, assuming $this from incompatible context

I don’t know if it’s even the right function but at least I tried.

Update

I just created a new thread for the subject:

Not tested

I have not tried tags/categories or pagination in the url because I don’t have them in my project.

Are there any other cases that we should test that I’ve missed?