Copied to clipboard

Flag this post as spam?

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


  • Mårten Palm 2 posts 32 karma points
    Jun 18, 2013 @ 17:35
    Mårten Palm
    0

    Hierarchial URLs

    Hi, I've set up a fresh installation of Umbraco 6.1.1 and I'm running into a problem with the URL naming.

    I have enabled the MVC rendering engine, and have created 2 parent nodes with different names, and under them I have added 1 node, but with the same name.

     

    The problem I'm facing is that the "Link to document" value will be the same for both the "Sida 1" under the "SE" node and the "EN" node, and when I surf to the link I can only access the SE version.

    When I previously built an Umbraco solution with the WebForms engine, it generated hierarchial URLs so that each node got its unique name. Is this possible with the MVC rendering engine (or do this setting not apply at all?). Or have I just missed some config setting somewhere to enable this?

    Regards
    Mårten

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jun 18, 2013 @ 17:39
    Tom Fulton
    100

    Hi Mårten,

    I think if you assign hostnames to each of your parent nodes, the problem will fix itself.

    Otherwise, you could try disabling `umbracoHideTopLevelNodeFromPath` in the web.config to change that behavior - but I'd recommend going the hostname route since it sounds like you'll need that anyway for your multilingual feature.

    Hope this helps,
    Tom 

  • Mårten Palm 2 posts 32 karma points
    Jun 19, 2013 @ 09:26
    Mårten Palm
    0

    Hi Tom

    Thank you, the "umbracoHideTopLevelNodeFromPath" solved the problem for me and did what I wanted.

    I don't want separate hostnames for the sites. I want mysite.com/lang/content and if you surf to mysite.com I want it to redirect to the first node (SE in my case). And with Umbraco 6 I seem to be able to change the culture on the node, not the hostname which is a big plus. So changing that flag gave me the behaviour I wanted.

    Regards,
    Mårten 

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jun 19, 2013 @ 16:17
    Tom Fulton
    0

    Great, sounds like that works for you then.  An alternative to get your desired behavior would be to put the en/se nodes under a "Home" node and leave umbracoHideTopLevelNodeFromPath on.  The Home node could have a template/macro that redirects for you - but sounds like either way should work for you :)

Please Sign in or register to post replies

Write your reply to:

Draft