Site menu urls are incomplete on child pages.

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.
4/20/2010 12:54:41 PM
Gravatar
Total Posts 6

Site menu urls are incomplete on child pages.

I have a site with 6 main pages and each of these has about 8 child pages. One of the main pages is called fitness and its url is <root>/fitness.aspx and some of it's child pages are programs (<root>/fitness/programs.aspx) and classes (<root>/fitness/classes.aspx).

I use a portal:sitemenu control with StartingNodeOffset="1" to navigate to the different child pages within a main page. The problem is that the menu is only rendering relative urls (e.g. fitness/programs.aspx rather than the full url <site root>/fitness/programs.aspx) .This means that when viewing the menu from <root>/fitness/programs.aspx the menu item for programs points to <root>/fitness/fitness/programs.aspx. This obviously gives a 404 error.

Also, this only seems to happen when the site is hosted in IIS. It seems to work fine when debugging with cassini.

4/20/2010 1:00:57 PM
Gravatar
Total Posts 18439

Re: Site menu urls are incomplete on child pages.

Hi,

Sorry but we don't support extra segments in the url like /fitness/, you should make the url for those pages like fitness-classes.aspx and fitness-programs.aspx instead of adding segments.

Hope it helps,

Joe

4/20/2010 1:12:55 PM
Gravatar
Total Posts 6

Re: Site menu urls are incomplete on child pages.

Thanks for the speedy response. This lead to a new issue. I was fiddling around and changed the url for the fitness page from ~/fitness.aspx to just ~/fitness .  This didn't work so I changed it back but now whenever I go to <root>/fitness.aspx it still tries to redirect me to <root>/fitness/.

I've restarted IIS and my entire system with out any luck. I've checked the url mapping screen and everything appears to be correct, same with the FriendlyUrls database table.

 

Is there some sort of cache that I'm missing?

4/20/2010 1:17:10 PM
Gravatar
Total Posts 18439

Re: Site menu urls are incomplete on child pages.

Whenever you change the page url a permanent redirect is created from the old url to the new one. But then if you change it back it cannot do it again or it would cause an infinite loop. Go to Administration > Advanced Tools > 301 Redirect Manager and delete the redirect.

It is possible in IS 7 and above to use extensionless urls.

Hope it helps,

Joe

4/20/2010 1:36:54 PM
Gravatar
Total Posts 6

Re: Site menu urls are incomplete on child pages.

Thank you joe. That worked.

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