Link Rewriting and Layout Builder

Created on 24 March 2025, 15 days ago

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!

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dchaffin

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

Comments & Activities

Production build 0.71.5 2024