$request->query()

Returns the query from the current URL as object

  • return ($query)
// http://example.com/some/path/?foo=bar&page=2
echo kirby()->request()->query()->foo();
echo kirby()->request()->query()->page();