This content has been marked as final. Show 7 replies
ColdFusion is not doing this, the browser is.
Spaces and most other non-alpha-numeric characters are not allowed in an
URL according to the HTTP standards. Thus these characters are being
escaped into hexadecimal representing the ASCII code for the characters
by the browser when the URL it process the link after it is clicked on.
I have noticed this as well.
For me it's not an issue and I have never paid any attention to it before but it
seems to me that this started after we upgraded to Windows 2003.
Also, it appears to occur intermittently.
Anyway, the first time I noticed it was shortly after our OS upgrade.
I can't see how CF or any thing server side could be causing this and it's
probably the browser. But I have not made any changes to my workstation.
Oh I forgot on last thing, it appears to only happen when there's a server redirect.
But even then, it only sometimes happens.
I'm not sure it can be entirely the browser though - plenty of sites out there seem to manage these types of URLs successfully.
Can you show the code and the error that it is throwing.
Ok, I appear to have solved my own problem, but I'll post it here for the benefit of anyone else searching in the future.
The problem/cause appears to be IIS. If there is no trailing slash in the URL, IIS does a redirect and changes the url format accordingly. If you add the trailing slash, it does not need to redirect, and therefore keeps the URL nice and clean.
Adding the trailing slash works for me as well.
... and thank you.
1.) you can turn off 'Check that file exists' within IIS
>IIS WEB > Properties >Home Directory > Configuration
Choose the file extentsion 'Edit'
2.) You can do the following on your page names:
#replace(this.pageName, " ", "_", "all")#