CommonContexts
CommonContexts copied to clipboard
Fix checks for relative redirects
Maybe it's me doing something wrong, but I think calling locatePath() on the expected URL breaks checks on relative redirects.
In which case is it broken ?
When $header is a relative redirect to /some/url then calling locatePath() on the expected one prepends the base_url configuration option, making the match fail.
Maybe the solution is to instead call locatePath() on $header as well?
Ping @stof
Does my comment make sense or am I doing something wrong?
:+1: failing here too