Domain access not working

Created on 10 January 2024, 6 months ago
Updated 11 January 2024, 6 months ago

Drupal Version

10.2 (and if that's relevant: I have the gin admin theme installed)

Domain module version

2.0.0-beta1

Expected Behavior

My node should only be accessible on the domain linked in "Domain Access" field in the node itself

Actual Behavior

This doesn't happen

Steps to reproduce

- created 2 domains in ddev using additional_hostnames in config.yaml => restarted, worked
- created 2 domains in /admin/config/domain (the default one and "domain2")
- created a new node type "domain2 page"
- moved the fields "Domain Access" and "Send to all affiliates" to the fields in the new node type
- create a new node of type "domain2 page"
- assign domain2 in the node
- save and publish the node
- now when I open the node with https://domain2.ddev.site/node/503 it's opened which is ok
- but when I open the node with https://domain1.ddev.site/node/503 it's opened, as well which should be the case since the node isn't linked to domain1 :-(

Is it a bug?

Since I couldn't find any documentation (I read the README, project page, youtube, ... nothing found), I couldn't help but file an issue here. Any help is highly appreciated. Thanks!

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Miscellaneous

Created by

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

Comments & Activities

Production build 0.69.0 2024