rename page name doesn't modify url automatically

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/25/2010 5:51:17 AM
Gravatar
Total Posts 3

rename page name doesn't modify url automatically

hi all, 

OS: Windows 2003 / Windows 7

Database: MSSQL 2005

Version of mojoPortal: 2.3.4.3

Steps to reproduce it

1. find a page click "page setting"

2. rename the page name, ie our services => our serv

3. focus out of page name (DO NOT click Save button), the url is changed, ie our-services.aspx => our-serv.aspx

4. focus back to page name

5. rename to the original name, ie our serv => our services

6. focus out of page name (DO NOT click Save button), the url is NOT changed, ie our-serv.aspx

Expected Results:

change the url back, ie our-services.aspx

Actual Results:

Last modification name, ie our-serv.aspx

 

Note:

It is a big problem while using non-ascii url. The mojoPortal may not find the page while we doing so in Chinese page name.

5/25/2010 11:09:19 AM
Gravatar
Total Posts 18439

Re: rename page name doesn't modify url automatically

Hi,

This should not be a common issue where the page name is changed and then changed back without saving. In any case it can be worked around easily by manually changing the url back as you would like it to be or just cancel without doing any saving.

When you rename it and a new url is suggested and then you save, what happens is that a permanent redirect is created from the old url to the new url, and then the old url cannot be used again, you can find these under Administration > Advanced Tools > 301 Redirect Manager

So in this case if you have saved it then you try to rename it back to the original page name and url, it will not allow you to use the url again because this would create an infinite redirect loop in the browser. So you must first go and manually delete the 301 redirect before you can use the url again.

The issue is that we are not currently passing a page id to the url suggest service and since it won't suggest an existing url it does not restore the current page url in this scenario when you rename it and then rename it back without saving. It can be fixed probably by changing the logic to pass in the current page guid and allow suggesting the current url as long as it is the same page. I have made a note of it and will get to it when I have a chance.

Best,

Joe

5/25/2010 8:02:47 PM
Gravatar
Total Posts 3

Re: rename page name doesn't modify url automatically

Thanks Joe. I got the point to fix it back. 

Our users are not in IT-background. They often did this.

You must sign in to post in the forums. This thread is closed to new posts.