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?
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.
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.
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 :)
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
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
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
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 :)
is working on a reply...