Open Lukewh opened 1 year ago
By default, redirects are very restrictive, this change makes things more open by default, which is fine in 99% of our use-cases.
/docs/test
/docs
https://github.com
url_prefix="/docs"
limit_redirects_to_url_prefix
True
False
Fixes https://warthogs.atlassian.net/browse/WD-2871
conflicts with main now
I'll fix the tests later - looks like I need to update new ones
@Lukewh is this still valid?
Done
By default, redirects are very restrictive, this change makes things more open by default, which is fine in 99% of our use-cases.
QA
/docs/test
->/docs
/docs/test
->https://github.com
url_prefix="/docs"
:limit_redirects_to_url_prefix
set toTrue
redirect 1. should work and redirect 2. should not.limit_redirects_to_url_prefix
unset (or set toFalse
), both redirects should workFixes https://warthogs.atlassian.net/browse/WD-2871