URL Encoded values for event pages work but cause style changes
Overview
In Drupal 7
Both: (A) civicrm/event/info%3Freset%3D1%26id%3D7 and (B) civicrm/event/info?reset=1&id=7 appear to show the same page however for anon viewers the custom-civicrm.css is loaded on (A) but not (B) and for logged in users if a different civicrm admin theme is set this is used to render the page instead for (A).
The version (A) is what is provided by default when using drupal views to display a link to events.
Reproduction steps
- Change the civicrm admin theme to be different to the default theme.
- Add a civicrm custom stylesheet via /civicrm/admin/setting/url?reset=1 or install the shoreditch extension.
- Create an event
- visit the event info page via the URL encoded link and compare to the non url encoded link.
Current behaviour
When viewed logged in with permission to view civicrm admin theme (A) displays using the admin theme (B) using the default theme. When viewed as anon - or logged in civicrm-custom.css is loaded on (A) and not (B)
Expected behaviour
Both pages should be identical.
Environment information
- CiviCRM: 5.21.1
- CMS: Drupal 7.x
- Web Server: Nginx
Comments
Of relevance:
https://github.com/civicrm/civicrm-core/pull/14876
https://chat.civicrm.org/civicrm/pl/iqg97j674fbn5d5jsf1n8qjnby