Register   Login
     
  Latest Posts  
RE: One latest for a few categories
by smcculloch on 11/20/2008 1:06 PM
RE: Start on Listing Screen
by smcculloch on 11/20/2008 1:06 PM
RE: Need a tutorial and simple sample to develop token-based module
by smcculloch on 11/20/2008 1:04 PM
RE: Prevew of Custom rich text field?
by smcculloch on 11/20/2008 1:02 PM
Add existing module through current module
by kosmashang on 11/20/2008 12:42 PM
Prevew of Custom rich text field?
by Christian on 11/20/2008 12:08 PM
RE: Ratings button appears to anonymous users
by WillJean on 11/20/2008 4:11 AM
Need a tutorial and simple sample to develop token-based module
by nmduc073 on 11/20/2008 3:53 AM
Start on Listing Screen
by jjjansen on 11/20/2008 3:34 AM
RE: Ratings button appears to anonymous users
by smcculloch on 11/20/2008 1:19 AM
  Forums  
Subject: Change Page name bug! fix response.redirect maybe?
Prev Next
You are not authorized to post a reply.

Author Messages
Ahsan ShamsUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:11

3/01/2007 9:40 AM  

When using the freindly URLS, if you change the name of a page, and hit update, DNN will refresh to go to the name of the page that it was before.

E.G. say you have a page named help.aspx in DNN. When you go and change this to say something like MyHelp and hit update, DNN will try to refresh to help.aspx when in reality it should have gone to myhelp.aspx.

I think a simple response.redirect would solve the problem, with the postback going to the updated page name and not the original name.

Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12439


3/01/2007 9:29 PM  
Yep - unfortunately the code that does this is in the core! (e.g. when you update a page)

Scott McCulloch
Site Administrator
Craig MUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:23

4/03/2007 7:29 PM  
Hi Scott,

Is there no fix for this? I am about to launch a new website for a client and they will maintain the site themselves and I don't think they will like an error everytime they update a page. Could Friendly URLs be turned off when editing a page?

Thanks
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12439


4/04/2007 4:33 PM  
On the edit module settings page, it redirects back to where it came from, but where you came from no longer exists.

Does it actually error out? Maybe it should redirect back to home of the portal.

Scott McCulloch
Site Administrator
GlenWinUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:711


4/04/2007 4:51 PM  
Posted By smcculloch on 4/04/2007 4:33 PM
On the edit module settings page, it redirects back to where it came from, but where you came from no longer exists.

Does it actually error out? Maybe it should redirect back to home of the portal.

I have the same issue everytime changing a page name - dnn  showed error that the page dont exist since it try to look for the 'old' page . However, this is issue is only temporary , once i navigate to another page then the new page name works  fine.

GlenWinUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:711


4/04/2007 4:52 PM  

I have the same issue everytime changing a page name - dnn  showed error that the page dont exist since it try to look for the 'old' page . However, this is issue is only temporary , once i navigate to another page then the new page name works  fine.
Lance LongUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:131


4/04/2007 5:03 PM  
Yes, this action would (should) naturally cause a 404 error. Best to set up the IIS 404 page to resemble a DNN tab so any 404s get handled included the renames. Carefully redirecting to a DNN tab as all 404s including images etc. will register in the log and bloat the list quite quickly.

You should advise your clients to rename as a last resort. Renaming will break any back links and temporarily remove the file from Google (et al) unless you use redirects. Renaming improperly can seriously hurt traffic.


Craig MUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:23

4/04/2007 7:43 PM  
Thanks for the advice. Just a quick note, I assume if friendly urls was included in the core this could be fixed (or if the core source is modified). Scott, are there any plans to include this in the DNN core in the future?
You are not authorized to post a reply.
Forums > Projects > Friendly Urls > Change Page name bug! fix response.redirect maybe?



ActiveForums 3.7