Skip to content

Problem with query parameters in Craft 3 #92

@clarknelson

Description

@clarknelson

I am having problems with using Craft::$app->request->getQueryParams() in the element API configuration. In fact anything related to the query parameters doesn't seem to work (Craft::$app->request->getQueryString() returns empty string even with ?query=parks).

Here is my relevent code, not sure what to do! It seems to work fine in twig. I've already opened up an issue with craft/cms.

screen shot 2018-11-21 at 9 14 42 am

screen shot 2018-11-21 at 9 19 07 am

screen shot 2018-11-21 at 9 17 03 am

screen shot 2018-11-21 at 9 16 27 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions