#96431Redirect to 404 if entry point is fully qualified domain
Description
Suppose we have a website address https://www.example.com
To reproduce:- have a Site Configuration with a language set with
base: 'https://www.example.es/'
- translate a page with title “test-default” with that language
- change the title of the translated page “test-es”
a new sys_redirect record is created with source_host www.example.com instead of www.example.es.
So when an user browses the default language of this translated page:
https://www.example.com/test-defaultis redirected to:
https://www.example.com/test-esthat doesn’t exist and throws a 404.
Correct redirect link should be:
https://www.example.es/test-es
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 4
-
Christian Toffolo changed subject
Wrong redirect source_host if entry point is full qualified domainRedirect to 404 if entry point is fully qualified domain category target version PHP Version 7.4 <span data-processor="relativetime" data-value="2022-02-17T19:54:50+00:00" > 02/17/22, 19:54 </span> -
Stefan Bürk changed assigned to Stefan Bürk <span data-processor="relativetime" data-value="2022-02-23T21:48:17+00:00" > 02/23/22, 21:48 </span>
-
Benni Mack commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-11-06T09:02:27+00:00" > 11/06/26, 09:02 </span> -
Benni Mack changed Related to #89328 <span data-processor="relativetime" data-value="2026-11-06T09:02:39+00:00" > 11/06/26, 09:02 </span>
Duplicate of #89328, fixed in 10.4 and v11 (October 2021): automatic redirects take their source host from the base of the page’s site language, and the target links to the page in that language, so a language with its own domain gets redirects on that domain. Covered by SlugServiceTest::rebuildSlugsForSlugChangeRenamesSubSlugsAndCreatesRedirectsWithLanguages(). Please reopen if this still happens on a current version.