A simple URL should work both with and without trailing slash

Vote:
 

I havent dug around but... Why is a simple URL not matched when visitor use a trailing slash?

For example I have the page /intranet/services/mail/ and on it I've saved the simple URL value "mail". I would expect the user to be redirected to the page for both:

http://domain.com/mail
http://domain.com/mail/

The normal URL-handler gets me to the correct page for both non-simple URL:s:

http://domain.com/intranet/services/mail
http://domain.com/intranet/services/mail/

On a side note: Without trailing slash the handler should do a permanect redirect (301), I haven't checked if this is the case.

#46634
Dec 22, 2010 10:28
Vote:
 

Hi

I looked around our bug system and found:

"#60010: Simple address should work if you append a slash at the end of the URL"

So it has been reported and accepted as a bug.

Regards

Per Gunsarfs
EPiServer Development Team

#46635
Dec 22, 2010 11:33
Vote:
 

Great! I hope it'll be fixed in 6 R2 then.

#46641
Dec 22, 2010 14:47
Vote:
 

If you need it sooner, the code in this blog post could be adapted pretty easily.

http://world.episerver.com/Blogs/Deane-Barker/Dates/2010/5/Redirecting-to-a-Simple-Address/

#46645
Dec 22, 2010 15:49
Vote:
 

I'm stuck on CMS 5 R2, and need to get this working ASAP. Is there any fix around? I checked out Deanes example, but not quite sure how to use it. I compiled your code as is, and just wanted to see if it was called if I appended a trailing slash. But no go. :(

Cheers!

#50638
Edited, May 06, 2011 2:34
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.