301 Redirect Creation

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.
10/8/2009 3:20:16 PM
Gravatar
Total Posts 43
Partner

301 Redirect Creation

Joe,

If you change the case of text in a url in [Admin] [Page Settings] an entry gets created in the mp_RedirectList table. This puts the browser in an infinite redirect.  Would changing line 701 of PageSettings.aspx.cs from

if ((oldUrl.Length > 0) && (oldUrl != newUrl))
to
if ((oldUrl.Length > 0) && (oldUrl.ToLower != newUrl.ToLower))

resolve this?

If so, two other files may need to be looked at as well:
mojoportal\mojoPortal.Features.UI\Blog\EditPost.aspx.cs
mojoPortal.Features.UI\Blog\EditPost.aspx.cs

 

10/9/2009 11:08:29 AM
Gravatar
Total Posts 18439

Re: 301 Redirect Creation

Hi Todd,

I will fix this for the next release.

I'm going to wrap the logic into a method SiteUtils.UrlsMatch(url1, url2)

On Windows urls are not case sensitive because the file system is not case sensitive but on linux file system and urls are case sensitive.

So my method will account for the platform difference.

Best,

Joe

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