Friendly URL issues

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.
12/18/2006 3:49:01 AM
Gravatar
Total Posts 488

Friendly URL issues

1. When editing friendly url on page settings page, a new one is created without deleting the old one.
2. When editing page title on Admin/PageSettings.aspx, a friendly URL is automatically generated. Local letters (russian in my case) are also copied to the Url, which is not good. Is it somehow possible to filter non-english letters?
12/18/2006 4:19:53 AM
Gravatar
Total Posts 18439

Re: Friendly URL issues

Hi Alexander,

I'm not sure I want to do anything about #1, to me its ok to have more than 1 friendly url that points to the same page. Especially if the previous url may have been bookmarked or crawled by google. If we delete then it may cause a 404 for someone with a bookmark or doing a google search. You can delete them manually if you prefer using the Url Manager module.

For #2 can you propose or implement a solution?

Thanks,

Joe
12/20/2006 2:40:36 AM
Gravatar
Total Posts 488

Re: Friendly URL issues

1. Ok, I agree.

2. As far as I can understand, you can just change CleanStringForUrl() function in mojoPortal.Business/Statistics/FriendlyUrl.cs file to filter out non-english letters.
12/20/2006 3:41:25 AM
Gravatar
Total Posts 18439

Re: Friendly URL issues

#2 I can do that if you're sure only english characters are allowed, is there a link you can point me to to confirm that?.
I was thinking of something like UrlEncode instead but the resulting url might not be all that friendly using that approach so if its true that only english letters are allowed your suggestion may be better. But if the page title is all in Russian then there will be no resulting friendly url suggested. What should we do in that case?
What we really need is a magic babelfish tranlslator that can translate any language to english :-)
12/21/2006 10:23:20 PM
Gravatar
Total Posts 488

Re: Friendly URL issues

Joe, I was wrong.

Speaking about domain names, non-english letters are not suitable (see for example 3.5 of  http://www.faqs.org/rfcs/rfc1034.html).

But everything that goes after the domain name is processed by the web server itself and may contain any letters (see for example local versions of Wikipedia, its URLs contain non-english letters).


Nevertheless, using non-english letters is not common.
It would be nice to have an option either to filter them out of friendly URL substitution or turn this autosubstitution off on the page or site settings level for this case.
You must sign in to post in the forums. This thread is closed to new posts.