Menu links of main website are still in the group domain.

Created on 30 January 2024, 10 months ago
Updated 12 March 2024, 8 months ago

Problem/Motivation

Steps to reproduce

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.

Proposed resolution

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).

Remaining tasks

  • Decide the best approach.
  • Implemet the approach.
Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇦🇲Armenia le72 Yerevan 🇦🇲

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024