Page forward to another page

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
8/6/2009 2:03:05 PM
Gravatar
Total Posts 53

Page forward to another page

How can you add a new page (menu item) but have that menu option just forward you to another existing page on the site?

Thanks in advance.

Derek

8/6/2009 2:07:56 PM
Gravatar
Total Posts 18444

Re: Page forward to another page

Create the page then specify a fully qualified url to the target page in the Url for the new page.

Hope it helps,

Joe 

11/22/2010 11:10:56 PM
Gravatar
Total Posts 156

Re: Page forward to another page

I found a problem with this.  I'm using a Superfish menu with 3 levels.  All of my top level pages pretty much serve as categories and I'd like them to redirect to the first 2nd level page as its landing page.

Using a fully qualified domain name to redirect from a 2nd level page to a 3rd level pages works fine.  Doing the same to redirect from 1st level page to one of the second level pages doesn't work.  What happens is when the use gets redirected to the 2nd level page, the rest of the second level links do not show up anymore because it's as if their parent no longer exists when in reality the parent page is still there - its  URL is just set to a fully qualified domain instead of a relative link.

What could be going on here?

11/23/2010 8:10:19 AM
Gravatar
Total Posts 18444

Re: Page forward to another page

Hi Alex,

You've hit upon a bad recipe that doesn't work as you would like, simple as that. Making a parent page really point to a child page breaks the menu hierarchy.

alternatives that come to mind

  1. use unclickable menus for the parent instead of redirecting
  2. create a simple custom module that does the redirect from code and put it on the parent page, this way the parent page can keep its url

Hope it helps,

Joe

11/23/2010 11:46:10 AM
Gravatar
Total Posts 156

Re: Page forward to another page

Unclickable menus is not really an option for me.

This mechanism works for 2nd -> 3rd pages, why wouldn't it work for 1st -> 2nd?  Also, I haven't looked at the code, but wouldn't it make more sense to base the references on page IDs as supposed their URLs?  This way, you could change the URL of a parent page and its children would still "recognize its father" :P?

I guess I'll just have to set up 301s on those top level pages if nothing else works.

11/24/2010 8:47:40 AM
Gravatar
Total Posts 18444

Re: Page forward to another page

actually using 301 redirects does sound like the best and easiest idea to me to achieve your goal, I should have thought to suggest that.

11/24/2010 11:34:29 AM
Gravatar
Total Posts 156

Re: Page forward to another page

I guess I strayed away from 301s b/c I'm not technically permanently moving these pages - I'm juts keeping them as placeholders.  I always assumed that's why you advised people to use FQDNs.  However, I'm still a bit perplexed by the fact that redirects work from 2nd > 3rd, but break parent-child relationship when the same is done for 1st >  2nd.  Why is that?

 

I'll make sure to mess around with the code once sometime frees up.

11/24/2010 11:44:24 AM
Gravatar
Total Posts 18444

Re: Page forward to another page

If you think you might later want to re-use those urls instead of redirecting then just use urls for the parent page that are disposable, like instead of pagename.aspx for the parent url use pagename-redirect.aspx and then do the 301 using that url. Later if you decide to make the page a viewable page just change the url back to pagename.aspx

 

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