Domain Microsite content avaiable on the default domain as well

Created on 21 January 2025, 5 months ago

Problem/Motivation

The articles or node accessible on all the domains record main domain as well the microsites.

Steps to reproduce

Installed module - Domain, Domain Access, Domain Alias, Domain Configuration, Domain Configuration UI, Domain Content, Domain Microsite by Path, Domain Theme switch ()screenshot attached for settings

I have created the main default domain and 2 microsites
1. Default domain - https://club.main.local/ - Active, Default - Yes, Scheme - variable (https)
2. Microsite Team - https://club.main.local/team/ - Active, Default - No, Scheme - variable (https)
3. Microsite Hospitality - https://club.main.local/hospitality/ - Active, Default - No, Scheme - variable (https)

I have a path alias set for the article content type and the path alias we use is "news/[node:title]"

1. I create the Article Example Article and set domain access setting ( main club domain ) the URL generate "https://club.main.local/news/example-article-2"
2. when creating an article "example for hospitality" and set domain access setting for Hospitality micoriste the generated URL https://club.main.local/hospitality/news/example-article-hospitality

but still I can access the article from the main domain as well as the microsites for example :-
https://club.main.local/news/example-article-2 - This is accessible using https://club.main.local/hospitality/news/example-article-2
and https://club.main.local/hospitality/news/example-article-hospitality is accessible on main domain as well
like https://club.main.local/news/example-article-hospitality

Any help much appreciated. note sure what the issue

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom swatichouksey4u

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

Comments & Activities

  • Issue created by @swatichouksey4u
  • πŸ‡ΊπŸ‡ΈUnited States drpldrp San Francisco, CA

    Try viewing the pages as anonymous?

    Regular Domain module access rules apply. This means if your user has node access regardless of domain assignment, the node will be viewable.

  • πŸ‡¬πŸ‡§United Kingdom swatichouksey4u

    Comment#2drpldrp ,

    Many thanks for your reply. I tried accessing the microsite article anonymously, and it worked well.

    However for my microsite, I have a dedicated homepage, and for this,
    I created a homepage(node/28) and set the domain access setting to "team".
    then in the site setting set the "Default front page" to node/28.
    when I tried to access the "https://club.main.local/team/" as an anonymous user I got 403 forbidden. do I need to set any permission for this?
    or update the domain setting so its available for domains?

  • πŸ‡¬πŸ‡§United Kingdom swatichouksey4u

    i spent some time checking the access issues.

    Domain microsite still using the setting from the "domain sites settings" module not from the domain configs. and that's why It was redirecting to the default homepage settings node/1 which was dedicated only to the default domain.

  • πŸ‡ΊπŸ‡ΈUnited States drpldrp San Francisco, CA

    I don't really understand what you're saying in #3.

    However, I did find a couple issues the current release of this module and Domain/Domain Config 2.0.0-beta2.

    Try the attached patch.

Production build 0.71.5 2024