Drupal Version
10.4.4
Domain module version
2.0.0-beta2
I have a site set up using Domain with several of its submodules including Domain Source.
When I try to modify the layout of a node on my local dev server, the link redirects to my live site. It does not do this on my test site.
mysite.com - LAYOUT tab goes to mysite.com/node/{nodeid}/layout
test.mysite.com - LAYOUT tab goes to test.mysite.com/node/{nodeid}/layout
mysite.lndo.site - LAYOUT tab goes to mysite.com/node/{nodeid}/layout
That last one should go to mysite.lndo.site/node/{nodeid}/layout
The other tabs (Edit, Delete, Manage Display, Revisions) all work correctly.
If I go to Admin > Configuration > Domains > Domain Source Settings, I see where I can disable the rewriting for canonical, delete_form, delete_multiple_form, edit_form, version_history, revision, create, display. There is no option for layout_builder.
If I uncheck one of those (e.g. edit_form), the tab performs incorrectly the same way the Layout tab is. I also tried on a different site that uses the same dev server config and layout builder, but does not use the Domain module and it works as expected.
How can I fix this? Thanks in advance!
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Capture d’écran 2025-10-23 à 23.49.31.png | 79.37 KB | mably |
Comments
Comment #2
mably commentedIf I understand it correctly you want to deactivate Domain source link rewrite behavior on Layout Builder pages?
@dchaffin, have you been able to find a solution on your side?
Unless new, valuable information is provided, this issue will be closed in 3 months.
Comment #3
mably commented@dchaffin Check this issue's MR for an example of how it could be done: #3546074: Add hook to domain_source module to alter the list of disallowed routes.
Comment #4
mably commentedYou can now exclude specific routes directly from the Domain Source settings page:
Comment #5
mably commented