I have a situation where I’m trying to figure out where is the URL decoding is happening. From my understanding to have a SEO friendly URL I should replace spaces with hyphens (-). For example, if I have a URL string as somedomain.com then I should change to somedomain.com
So I have a following scenario where I URLEncoded the strings and replaced the %20 to hyphens. See example below.
Original URL:
http://dummy.com/KL01-10-243A/WASHER, SEALING
URL Encoded URL
http://dummy.com/KL01%2d10%2d243A/WASHER%2C%20SEALING
SEO Friendly URL (I’ve replaced the %20 to a hyphen):
http://dummy.com/KL01%2d10%2d243A/WASHER%2C-SEALING
However, on the ColdFusion side the URL string is returned as follows.
http://dummy.com/KL01-10-243A/WASHER,-SEALING
It already decoded it for me before I could replace the hyphens to %20 then decode the string.
Is this an IIS, ColdFusion, or ColdBox issue. I would prefer the URL strings were NOT decoded automatically.
I’m on the following environment.
Windows 2012 Server 64bit
IIS 8
ColdBox 3.8.1