Issue Bug Resolved

#111454Redirects with a record link target do not redirect from a host without site

Oliver Bartsch 11/14/26, 17:41 updated 11/19/26, 10:20

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

  1. Configure a record link handler (TCEMAIN.linkHandler.news and
    config.recordLinks.news) for a site.
  2. Create a redirect with source host old.example.org (no site) and a record
    link target to a record of that site.
  3. 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

  1. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 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.