I’m trying to access the query parameters in the current URL. The $request object accessed through $kirby->request() seems to be what I’m looking for. The Kirby\Http\Request object has two methods that both look like they should provide access to query parameters: $request->params() and $request->query(). Both of those lack documentation, so it’s difficult to tell which is the correct one to use.
$request->query() does provide access query parameters, while $request->params() always returns an empty Kirby\Http\Params object, regardless of the current URL. I thought maybe the params() method might be used to access body parameters in a POST request, but it doesn’t do that either (besides, the body parameters can be accessed using $request->data()).
What’s the purpose of the $request->params() method?