Download & Extend

Trailing slash in url give "page not found"

Project:Go - url redirects
Version:4.7.x-1.x-dev
Component:Code
Category:support request
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

If the GO statement looks like this, I'll get a database entry, but when I click the link it ends up with a "page not found" and the click counter is not incremented.

<go href="http://idebanken.se/mattias/" target="new">http://idebanken.se/mattias/</go>

When I remove the trailing slash ("/") everything works great!
<go href="http://idebanken.se/mattias" target="new">http://idebanken.se/mattias/</go>

Comments

#1

I noticed the same.
But I think this is because "global redirect" module does strip all leading slashes away. Do you have installed that?
If - I would suggest you check each item, before it got inserted into the gotwo db, if it contain a leading slash, and if - remove it.
Maybe this could be added as an configuration option in future, would be nice.

#2

Category:bug report» support request
Status:active» fixed

Sounds not like an issue of the GoTwo module. If the URL gives you an 404 you need to find out why the server gives you an 404

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here