You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When debugging an issue with a couple of redirects on #1101, I found that they weren't working because I'd not put trailing slashes in the to property of the object in redirects.json. Ideally redirects.js would look for a match for window.location with or without the trailing slash (this should be an easy fix)
We could just document the requirement for redirects.json to match window.location exactly, trailing slash or not, but it would be better not to have to worry about whether the slash exists in a given context
The text was updated successfully, but these errors were encountered:
yndajas
changed the title
Allow redirects.json to work with or without trailing slash
Allow redirects.json to work with or without trailing slash
Apr 13, 2023
When debugging an issue with a couple of redirects on #1101, I found that they weren't working because I'd not put trailing slashes in the
to
property of the object inredirects.json
. Ideallyredirects.js
would look for a match forwindow.location
with or without the trailing slash (this should be an easy fix)We could just document the requirement for
redirects.json
to matchwindow.location
exactly, trailing slash or not, but it would be better not to have to worry about whether the slash exists in a given contextThe text was updated successfully, but these errors were encountered: