Copied to clipboard

Flag this post as spam?

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


  • lpalou 5 posts 85 karma points
    Jan 25, 2017 @ 09:33
    lpalou
    0

    Two nodes and two different domains for the homepage "/"

    Hello!

    In the root node of my project, I have two nodes with different domains assign to it as follows:

    Root node 1 -> domain.com -> Open first child "Landing page"
    Root node 2 -> subdomian.domain.com -> (Should) open first child "Landing page"
    

    When I access subdomain.domain.com however, the page that opens is the Landing page of domian.com.

    If I access subdomain.domain.com/LandingPage then the correct one opens.

    What I'm doing wrong? How can I achieve that when accessing subdomain.domain.com his first child node opens and not the other one?

    Many thanks!

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jan 25, 2017 @ 14:00
    Alex Skrypnyk
    0

    Hi

    How do you define what page you have to open?

    Do you have some sort of redirect on root node?

    Maybe you have content picker with "umbracointernalRedirectId" alias.

    Give us more info.

    Thanks,

    Alex

  • lpalou 5 posts 85 karma points
    Jan 25, 2017 @ 14:33
    lpalou
    0

    Actually the behaviour is pretty much the default one. The root node is just a container withouth template and umbraco automatically decides to open the first node.

    The other pages just make their name as part of the URL.

    For example, a node named Registration under Root 1 and Root 2 would generate two urls: domain.com/registration & subdomain.domain.com/registration

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jan 25, 2017 @ 14:49
    Alex Skrypnyk
    100

    Hi lpalou,

    Maybe I'm wrong but Umbraco opens a first node in the tree, not first from the root. Umbraco opens a first node in the tree with template and published.

    I thin using "umbracointernalRedirectId" property will solbe your problem in easiest way.

    Just add "umbracointernalRedirectId" content picker to root node and select start page for each domain.

    Hope it will help.

    Thanks,

    Alex

  • lpalou 5 posts 85 karma points
    Jan 25, 2017 @ 14:53
    lpalou
    0

    You are very right, this is exactly what Umbraco was doing and I didn't know how to make the second root use his first child and not the first child of the first root.

    This property "umbracointernalRedirectId" did the magic!! Is this documented somewhere, seems like something quite common!

    Thank you very much! You saved my day! :)

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jan 25, 2017 @ 14:57
    Alex Skrypnyk
    1

    Glad to help.

    I found a list of these properties here:

    http://www.wiliam.com.au/wiliam-blog/sydney-web-design-umbraco-reserved-properties-and-their-usage

    Have a nice evening.

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft