FW1 redirect and escape characters in URL

What would cause escape characters to render in a URL like this?

http://127.0.0.1:49552/fw1-sa/index.cfm?action=admin%3Anewsite

Using CommandBox to deploy server and FW1- Framework 1.

Version Lucee 6.0.1.83


Version Name Gelert
Release date Mar 18, 2024 Remote IP 127.0.0.1


Loader Version 6.0.1.83
Servlet Container WildFly / Undertow - 2.2.28.Final
Java 21.0.2 (Homebrew) 64bit
Host Name 127.0.0.1
OS Mac OS X (14.3.1) 64bit
Architecture 64bit

Don’t know what exactly you are asking for. But in your case, if the URL variable “action” should be populated with the value “admin:newsite”, then it should be escaped like in your example with code similar to this:

<cfscript>
echo("admin:newsite".urlencode());
</cfscript>

I’m trying to run existing code in Framework 1.

a dump shows this as the target URL:

location ('/fw1-sa/index.cfm?action=admin:main');

and this is what appears in browser:
http://127.0.0.1:55622/fw1-sa/index.cfm?action=admin%3Amain

I’m asking if this is normally how the URL should appear in the browser? Or should the colon not be encoded?
http://127.0.0.1:55622/fw1-sa/index.cfm?action=admin:main

I believe that is by design, as described here:

1 Like