danmurphy
03/18/2022, 10:07 PMcflocation
automatically encodes the url before redirecting. We are using relocate
within ColdBox, which uses cflocation
under the hood. The fix was completed in July 2019 and then wasn’t moved to Patch Ready
status until April 2021. Is there anything preventing this from getting into a release at this point? (I asked the same question on the ticket).
https://luceeserver.atlassian.net/browse/LDEV-2164Adam Cameron
danmurphy
03/18/2022, 10:47 PM?
at the beginning of the query string are getting encoded when we don’t want them to be.Adam Cameron
Adam Cameron
?
in this URL would be getting escaped? <http://example.com?query>
. That's not correct. Also the only meaningful ?
in a URL is the first one (between the path and the query part, as per my example there). After that they are just interpreted as question marks. This is specifically mentioned in section 3.4. Shouldn't be getting encoded (in the query string part... obvs ones in the path part will need to be encoded, otherwise they will be incorrectly interpreted as the delimiter between path & query parts)danmurphy
03/18/2022, 11:03 PMAdam Cameron
?
delimiter before the query string is... pretty bloody fundamental to URLs, and we all know about that.Adam Cameron
<cflocation>
is about relocating. It's not about URL encoding (the hint is in the name... it's just <cflocation>
, not <cfmesswiththeurlfirstandthenlocation>
). Shouldn't be doing it at all IMO. It's the job of the code building the URL to deal with that.danmurphy
03/18/2022, 11:16 PMAdam Cameron
danmurphy
03/18/2022, 11:21 PMAdam Cameron
danmurphy
03/18/2022, 11:44 PMAdam Cameron
danmurphy
03/18/2022, 11:50 PMdswitzer
03/22/2022, 1:20 PMLocation.cfc
I posted to the ticket has been working well for us. We wrapped it up as part of an ACF compatibility extension we're using which adds some missing BIFs (like reEscape()
). So the Location.cfc UFD just ends up overriding the built-in tag.danmurphy
03/22/2022, 3:39 PM