Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > CMS uses URL with trailing slash on files(?!) View modes: 
User avatar
Member
Member
olaf-elan - 6/1/2010 9:43:52 AM
   
CMS uses URL with trailing slash on files(?!)
In settings -> URLS - [Use URLs with trailing slash]

If this dropdown is set to: Always use URL's with trailing slash.

A trailing slash is added to any URL not making any difference to URL's that end with file extentions!

EG: http://myurl.com/example.aspx => http://myurl.com/example.aspx/

Url trailing slashes are intended for directorynames not for actual filenames.

I came across this because my rewrite rules do make a distictin between files and folderpaths. My rewrite rules didn't work correctly since Kentico changed a filepath to a folderpath!



User avatar
Kentico Developer
Kentico Developer
kentico_martind - 6/6/2010 3:17:04 PM
   
RE:CMS uses URL with trailing slash on files(?!)
Hello,

This is by-design behavior, but you can optionally set following key into /configuration/appSettings section of your web.config file to apply trailing slash only for extension-less URLs:

<add key="CMSUseTrailingSlashOnlyForExtensionLess" value="true" />

Best Regards,

Martin Dobsicek