Closed luca-rath closed 2 years ago
@alexander-schranz Can you remember what the reason was to set mb_strtolower
for these properties?
@luca-rath it was a requirement, the behaviour is so expected, we match against lower case urls always. /redirect-URL
and /redirect-url
should be redirected to the same target. Atleast the source
should stay with mb_strtolower
. The target I'm curious where the case was that it was redirect to a none case url it should also be there a lower url and stay that way. Where did it appear?
What's in this PR?
This PR removes the
mb_strtolower
transform fromRedirectRoute::setSource()
,RedirectRoute::setSourceHost()
andRedirectRoute::setTarget()
.Why?
I'm not sure if there was a real reason, that the
mb_strtolower
has been used forsource
andsourceHost
, but at least fortarget
it needs to be removed, because some websites return different responses forhttps://example.com/en_US
andhttps://example.com/en_us
e.g.