Skip to content

Singleton page and queryParams in page address (ex. ?utm_source=some) cause Error #1990

@denis-gorin

Description

@denis-gorin

When I try to create link for using in external app with marketing params (ex. ?utm_source=some etc.) the singletone page returns error.

Details

Question Answer
Relevant Bolt Version 4.1
Install type Composer install
PHP version 7.2
Web server Apache / Nginx / Built-in, version [ sf 5.1.7]

Reproduction

PS
There is config workaround by disabling query_search in config.yaml
See Allow filtering on listing pages using query parameters

Or by overriding some singletons routing (in routes.yaml)...

But this is still interesting behaviour...

The reason is most likely in ListingController.php when we '...trying to "list" a singleton...' then forwarding to DetailController::record we are using query params, but, I guess, should not...

PPS
May be we need firstly to check in ListingController if it's a singleton (instanceof Content) without queryParams and only after that work out the case with the listing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions