Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • jason mitchell 11 posts 68 karma points
    Oct 20, 2011 @ 20:51
    jason mitchell
    0

    Declaring the default page in node

    So I have the following schema:

     

    • Root
    • Menu Item 1
    • Child 1
    • Child 2
    I want so when someone goes to mysite.com/menuitem1/ I want them to go directly to Child 1.  Currently I'm setting a property alias umbracoRedirect on the Menu Item 1 document type.  However, this is doing a 302 redirect and I'd rather not have any redirect.
    Thanks

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Oct 20, 2011 @ 22:22
    Tom Fulton
    0

    Hi,

    You could try using the umbracoInternalRedirectId property instead, which should transparently load the content from the page you select into the current page.  However I recall there might be issues with this in regards to macros (?), haven't really used it though so I'm not sure.

    The better option might be to have your navigation menus write out the link to Child1 directly, this would probably be better for SEO also rather than having duplicate content and redirects going on.

    You could do this for all links in your navigation xslt or add a property to the page like umbracoRedirectToChild.  I did something similar in a recent project where some top-level menu items were unclickable, only child items could be clicked.

    -Tom

Please Sign in or register to post replies

Write your reply to:

Draft