Skip to content

[6.x] Use absolute URL in link index column for entries on another site - #15755

Merged
jasonvarga merged 2 commits into
statamic:6.xfrom
edalzell:fix/link-index-cross-site-url
Oct 30, 2026
Merged

jasonvarga merged 2 commits into
statamic:6.xfrom
edalzell:fix/link-index-cross-site-url

Conversation

@edalzell

@edalzell edalzell commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Listing column for a link field with select_across_sites shows the entry's relative URL regardless of site. Example: SEO Pro redirect on https://foo.test pointing at an entry on another site. Column shows /visit/excursion-train-rides, link opens https://foo.test/visit/excursion-train-rides, 404. Should show and open the other site's URL.

Fix: Link::preProcessIndex uses absoluteUrl() when the entry's site differs from the listing site (parent entry's locale, else Site::selected()). Same-site entries, assets and plain URLs unchanged.

@jasonvarga
jasonvarga merged commit 78c0876 into statamic:6.x Oct 30, 2026
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants