The main site is on `www.mysite.com`
Add a main menu to the site header (or any other place) with links to Page nodes. Like "About Us" (node/1 and alias /about), "Contact Information" (node/2 - /contact) etc.
Add a group1 and set the domain to group1.mysite.com (or www.group1.com). Visit the group page and see the links in the main menu. It will be group1.mysite.com/about, group1.mysite.com/contact. I want to make it possible to have the links to the nodes, that are not in the current group prefixed with the default domain. Or even better check if the node belongs to another group with a domain set and prefix with that domain.
Option 1: Add a checkbox to the menu item "Default domain item". If checked the item link should be built using the default domain (external, if you are on the non-default domain).
Option 2: All links (alter the Link() method or similar) should be checked with the logic explained in option 1. Namely, if a link is not to the entity member of the group, use the default domain, else use the domain of the group (if set).
Active
3.0
Code