Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterUpgraded to 1.15 and now URLUpgraded to 1.15 and now URL's are missing trailing /
Previous
 
Next
New Post
2/25/2010 12:24 PM
 

Hi Bruce,

 

i've upgraded to 1.15 as I'm now running DNN 5.2.3.  After upgrading I have now noticed that all URL's on the site are missing the trailing "/" that they used to have.

E.g http://www.workoutbox.co.uk/workouts/fat-burning-workouts

Should be:

http://www.workoutbox.co.uk/workouts/fat-burning-workouts/

 

Do you have any idea what might be causing this?  I have looked on URL Master settings page but cant see anything as to how to fix this.

Thanks,

Simon Turner


WorkoutBOX - where online fitness is simple
 
New Post
2/25/2010 2:33 PM
 

Simon - it's intentional.  It was a popular request to drop the trailing slash and have the urls just end with the last term, twitter (and others) style.  I can't recall the exact version it changed but it is listed in the release notes thread.

There's no setting to change it back.  Your old Urls should all get 301 redirected to the version without the trailing slash.  It is more correct, as officially, the / would signify a directory level, whereas the page as-is signifies the resource.


Chief Software Hacker
 
New Post
2/25/2010 2:42 PM
 

Hi Bruce, ah right, I see.

This isnt good for my site as it breaks a lot of internal links that i have setup.  Some are created at runtime by taking the current URL and adding "foldername/" to it.  Since there is no trailing / this now breaks.

You can see all the broken links on pages like this - http://www.workoutbox.co.uk/exercises/ab-exercises

I have over 8000 pages of my site indexed from google, i know that it will 301 redirect, but doing this on all my URL's at once could cause problems with my rankings....  The sites really big and I dont want to change the URL structure as I dont want to break anything.

Are you sure there is no way for me to keep the trailing "/".   Could it not be done with a rule in "FriendlyUrlParms.config"?

Thanks again,

Simon


WorkoutBOX - where online fitness is simple
 
New Post
2/26/2010 1:46 AM
 

Simon - not really because the code to remove the trailing slash is inbuilt into the module - the config file only works on pages which have something else.

There's one thing you can try - which is ticking the 'always use page extension' and then putting in / - in my short testing this appears to work OK but you would have to check it out on a site the size of yours.  Essentially this *should* do what you want, but I can't be 100% certain.

My best advice on the redirects if that doesn't work is 'trust me'.  I know that's not much help and usually what a politician does before increasing your taxes, but I checked out the page you mentioned and all the links appear to be working OK with 301 redirects.  I wouldn't expect that you will have any problems, although the issue does remain about your dynamically built (and thus static) links.  If these are hard-coded into text/html objects there may be things you can do to update the links.  For my part, I'd rather assist you to move forwards on this than try and fork the code to allow two types of no-extension handling

 
New Post
2/26/2010 9:53 AM
 

Hi Bruce,

Good news, from my initial testing it looks like your work around works :)

I'm actually moving out to Sydney in a few days,  so I'll hold off on the live upgrade until I'm settled out there as dont want to rush it now.

Thanks again for your help, fingers crossed this work around should do it.

Simon


WorkoutBOX - where online fitness is simple
 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterUpgraded to 1.15 and now URLUpgraded to 1.15 and now URL's are missing trailing /


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

Please note : If you are posting a new thread for the Url Master module, please include the following information where applicable:

- Url Master version

- DotNetNuke version

- Example Url where possible

- If there is an error, please post the full error text and/or stack trace (from the DotNetNuke event log).