Copied to clipboard

Flag this post as spam?

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


  • MartinB 411 posts 512 karma points
    Feb 07, 2011 @ 21:38
    MartinB
    0

    Use node hostnames as navigation hrefs

    Hi there

    I have a website with different sections that have their own hostname assigned to them (multiple sites in one umbraco instance). These different sections are always visible in a "level 0" top navigation. Lets call it a sort of portal like website.

    My problem right now is that i can target the same pages from all the domains. Example:

    Gallery page on the correct domain would be:

    www.website1.com/gallery.aspx but this is available through i.e. www.website2.com/website1/gallery.aspx

    I could fix it with 301's, but that's not very automatic :/

    The pages are build kinda strangely to get the "Frontpage" link on the same level as the level 1 nodes. I didn't know better navigation xslt back when i made it (my first umbraco site):

    Domain 1 (frontpage node redirects to first child which is called Frontpage)
      - Frontpage
      - Etc

    Domain 2 (frontpage node redirects to first child which is called Frontpage)
      - Frontpage
      - Etc

    Domain 3 (frontpage node redirects to first child which is called Frontpage)
      - Frontpage
      - Etc

    Is there a way to set the hrefs of the level 0 nodes equal to their hostname record (www.domain.com) through instead of /nodename.aspx.

     

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Feb 07, 2011 @ 23:55
    Chris Houston
    1

    Hi Martin,

    This was a known bug which was fixed in the latest release of Umbraco 4.6.1

    We had the same issue and by upgrading it fixed it :)

    Cheers,

    Chris

  • MartinB 411 posts 512 karma points
    Feb 08, 2011 @ 20:41
    MartinB
    0

    Hi Chris

    I'm so afraid to upgrade - all evil on earth will come down upon me :D

    Oh well i have no way around it then i guess, thank god for localhost :-)

     

  • Christer Josefsson 55 posts 93 karma points
    Feb 09, 2011 @ 17:10
    Christer Josefsson
    0

    Wait for 4.6.2 before upgrading...

  • Chris Houston 535 posts 980 karma points MVP admin c-trib
    Feb 09, 2011 @ 17:12
    Chris Houston
    0

    Hi Christer,

    Just wonder why you've recommended that? Have you found any specific breaking changes in 4.6.1?

    Cheers,

    Chris

  • Christer Josefsson 55 posts 93 karma points
    Feb 09, 2011 @ 17:14
    Christer Josefsson
    0

    Not really, but isnĀ“t it just around the corner???

Please Sign in or register to post replies

Write your reply to:

Draft