FutureStudents hosts /myfile, which should redirect to MyFile page. #legacy
Problem
- Offer letter emails contain a URL to futurestudents/myfile with query strings
- Drupal redirect URL cannot handle query strings, resulting in 404
Solution
- /sites/default/modules/multisite_core/src/Controller/MyFile.php contains a TrustedRedirectResponse function
- This function repackages $_REQUEST, pass along query strings
- This route must not be cached - apparently URLs with different $_REQUEST can be cached, resulting in incorrect final destination URL
- This is observed in cache_page table = cache_page caches per url+query (different $_REQUEST = different cache object) but there must be an internal caching system that is per url (different $_REQUEST = same cache object as long as the same URL)
Connect with the Division of Students