#111454Redirects with a record link target do not redirect from a host without site
Description
Problem
A redirect whose source host has no site configuration, typically an old
domain, does nothing if its target is a record link such as
@t3://record?identifier=news&uid=5@. The request ends with a 404. The same
redirect with a page target works.
Steps to reproduce
- Configure a record link handler (
TCEMAIN.linkHandler.newsand
config.recordLinks.news) for a site. - Create a redirect with source host
old.example.org(no site) and a record
link target to a record of that site. - Request the source URL: 404 instead of a redirect.
Cause
RedirectService::resolveSite() derives the site from the target for page
links only. For record links it keeps the NullSite, and
@getUriFromCustomLinkDetails()@ returns null.
Reviews 2
History 15
-
Gerrit Code Review pushed patch set 1 for main to change 97676 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-15T10:40:53+00:00" > 11/15/26, 10:40 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97676 <span data-processor="relativetime" data-value="2026-11-15T11:01:54+00:00" > 11/15/26, 11:01 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97676 <span data-processor="relativetime" data-value="2026-11-15T11:12:36+00:00" > 11/15/26, 11:12 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97840 <span data-processor="relativetime" data-value="2026-11-19T10:12:42+00:00" > 11/19/26, 10:12 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-19T10:20:10+00:00" > 11/19/26, 10:20 </span>
Applied in changeset commit:b33f3c42f781f6cc06c460ed97fef80200d251fa.