URL Encoded values for event pages work but cause style changes
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.
- 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.
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)
Both pages should be identical.
- CiviCRM: 5.21.1
- CMS: Drupal 7.x
- Web Server: Nginx