Under folder-based subsites friendly url not shown

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.
6/7/2007 6:07:47 AM
Gravatar
Total Posts 488

Under folder-based subsites friendly url not shown

When using folder-based sites (under pgsql version), friendly urls are not shown in url manager of the subsites. They are successfully created and do work, but url manager says there are no urls.

6/7/2007 2:10:14 PM
Gravatar
Total Posts 18439

Re: Under folder-based subsites friendly url not shown

I have that fixed here, it will be in svn by the end of the day.

Thanks,

Joe

6/8/2007 2:45:54 AM
Gravatar
Total Posts 488

Re: Under folder-based subsites friendly url not shown

Now urls are shown, but nothing prevents me from creating 2 or more identical friendly urls.

6/9/2007 3:40:00 AM
Gravatar
Total Posts 488

Re: Under folder-based subsites friendly url not shown

Now there is a check for duplicates, but /page.aspx and /PAGE.aspx still can be added.

6/11/2007 7:03:00 AM
Gravatar
Total Posts 18439

Re: Under folder-based subsites friendly url not shown

Note that while urls are not case sensitive on windows, they are on linux and its allowed to have different pages with names that differ only in case, so Home.aspx is not the same page as home.aspx on linux. In fact if the page is actually home.aspx and the request has Home.aspx on linux that will result in page not found error.

This is because the file system is case sensitive on linux and case insensitive on windows, its not a feature of the web server.

Default friendly pages in mojoportal are always made as lower case. I did this so that if a site is moved from a windows server to a linux server there won't be broken urls. But I don't enforce this for manually created friendly urls. I do recommend keeping friendly urls lower case though.

I will add a check for the pagename.ToLower() to help avoid this duplication.

Thanks,

Joe

6/12/2007 3:12:44 AM
Gravatar
Total Posts 488

Re: Under folder-based subsites friendly url not shown

Thanks for the explaination and the additional check.

 

Some more things about the same page, just for not starting a new thread:

1. It would be nice to add the same checks for editing urls.

2. When clicking on a edit url icon a panel with url properties is shown. It would be nice to make its layout similar to the one of the top of the page.

7/16/2007 7:56:17 AM
Gravatar
Total Posts 18439

Re: Under folder-based subsites friendly url not shown

This is not a priority for me. If you want to make a note of it here:

http://www.mojoportal.com/qateamnotes.aspx

I will get to it eventually.

I cannot just use the same code to check for existing when updating an existing friendly url because it will exist and therefore would not allow update. It would need to check if there was an existing record with a different id.

If it was really easy I would just do it but I need to stay focused on high priorities.

7/23/2007 6:10:52 AM
Gravatar
Total Posts 488

Re: Under folder-based subsites friendly url not shown

Thanks, I missed this message. I shall populate this page.

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