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?
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
Reproduction
PS
There is config workaround by disabling
query_searchinconfig.yamlSee 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.phpwhen we '...trying to "list" a singleton...' then forwarding toDetailController::recordwe are using query params, but, I guess, should not...PPS
May be we need firstly to check in
ListingControllerif it's a singleton (instanceof Content) without queryParams and only after that work out the case with the listing?