Bug #96010
closedTranslated pages can be loaded with slug of default language
100%
Description
Reproduce¶
1. Install TYPO3 with latest core and introduction package (e.g. with DDEV https://docs.typo3.org/m/typo3/guide-contributionworkflow/master/en-us/Appendix/SettingUpTypo3Ddev.html) and then install introduction package
Site configuration should also be created automatically, is:
typo3conf/sites/introduction/config.yaml
base: /
languages:
-
title: English
enabled: true
languageId: 0
base: /
typo3Language: default
locale: en_US.UTF-8
iso-639-1: en
navigationTitle: English
hreflang: en-US
direction: ''
flag: us
-
title: Dansk
enabled: true
languageId: 1
base: /da/
typo3Language: da
locale: da_DK.UTF-8
iso-639-1: da
navigationTitle: Dansk
hreflang: da-DK
direction: ''
fallbackType: fallback
fallbacks: ''
flag: dk
-
title: German
enabled: true
languageId: 2
base: /de/
typo3Language: de
locale: de_DE.UTF-8
iso-639-1: de
navigationTitle: Deutsch
hreflang: de-DE
direction: ''
fallbackType: fallback
fallbacks: '1,0'
flag: de
rootPageId: 1
websiteTitle: 'TYPO3 Introduction Package'
2. Create translation (German) for page /features, set slug to /features-de.
Revert redirects to reduce site-effects.
3. Enable the translated page
4. Load the 2 URLs:
/de/features-de
(this is correct)/de/features
(this is not - it uses the slug of the default language)
Actual result¶
both URLs load the same page
Also compare the source code - it will show the same canonical URL and same page ID:
<link rel="canonical" href="/de/features-de"/>
<body id="p81" class="page-81 pagelevel-1 language-2 backendlayout-default layout-default">
Expected result¶
/de/features
should show an error page
Versions¶
- was reproduced with latest master
- also 10.4.21
Impact¶
This results in duplicate content: same page with several URLs. This can also result in redirect chains which do not get detected with redirect:checkintegrity (I had several of these, investigating I found this issue).
Updated by Stefan Bürk about 3 years ago
- Status changed from New to Accepted
- Assignee set to Stefan Bürk
Confirmed. Will investigate this.
Updated by Felix Nagel over 2 years ago
- Related to Bug #88715: Wrong routes for default url slugs on translated base path pages added
Updated by Felix Nagel over 2 years ago
Can confirm with TYPO3 11.5.8 and it looks like this a problem with pages and all other records too (which makes sense as everything is a record nowadays).
See https://github.com/georgringer/news/issues/1158 and https://github.com/fnagel/t3extblog/issues/238
Updated by Gerrit Code Review over 2 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review over 2 years ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review over 2 years ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review over 2 years ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review over 2 years ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review over 2 years ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review over 2 years ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Sybille Peters over 2 years ago
- Status changed from Under Review to Closed
Is duplicate.
I looked at the other issue https://forge.typo3.org/issues/88715 and it seems identical to me.
I will close this issue (as it was created at a later time) and change "Releases" in patch.
Updated by Sybille Peters over 2 years ago
- Status changed from Closed to Under Review
I am opening again, because the bugs are slightly different, and I could reproduce one and not the other.
These are the testcases I tested with and the test scenario:
To test this again, I used my already existing installation which is now the latest branch "main" with TYPO3 core v12 and a minimal "coredev" instance (create installation from git cloned repo) with "styleguide" extension for Frontend. Created pages for frontend testing with styleguide. Without introduction package or bootstrap_package.
I also tried changing the setting fallbackType from "strict" to "fallback" in the translation language German and added English (default language) as fallback language, but this did not make a difference in either case, so changed it back again to "strict".
Test scenario¶
- English is default language
- German is translation
URL with German language has prefix /de
I created these pages:
en: /test/languages de: /de/test/uebersetzungen
(to properly test the slugs should differ!)
I tested this:
Test 1 : German Slug as English URL: /test/uebersetzungen- URL without prefix
- corresponds with issue Ronny https://forge.typo3.org/issues/88715
- Load URL: /test/uebersetzungen
- expected result: 404
- actual result: 404
- problem NOT reproducable
- URL with prefix
- correspondes with this issue https://forge.typo3.org/issues/96010
- load URL: /de/test/languages
- expected result: 404
- actual result: page is loaded (contains content of default language)
- problem reproducable
"Reproducable" means page can be loaded and shows content. We do expect page cannot be loaded (404) because the slug is loaded with a different language prefix.
Updated by Gerrit Code Review over 2 years ago
Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review about 2 years ago
Patch set 12 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review about 2 years ago
Patch set 13 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Oliver Hader about 2 years ago
- Sprint Focus set to On Location Sprint
Updated by Gerrit Code Review about 2 years ago
Patch set 14 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review about 2 years ago
Patch set 15 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review about 2 years ago
Patch set 16 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review about 2 years ago
Patch set 17 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review about 2 years ago
Patch set 18 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review about 2 years ago
Patch set 19 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review about 2 years ago
Patch set 20 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75101
Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76494
Updated by Stefan Bürk about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 25ae22a0fd1b825c8ed1497bf8339c854ac9501f.
Updated by Benni Mack almost 2 years ago
- Status changed from Resolved to Closed
Updated by Jens Zscheile almost 2 years ago
- Related to Bug #99554: After I've installed patch lvl 11.5.18, mount points with non translated slugs stoped working and shows 404 in the FE. added
Updated by Stefan Bürk over 1 year ago
- Related to Bug #100990: Pages with trailing slash in slug are not resolved if requested uri does not contain a trailing slash added