Bug #88260
closed
Linking to translations of pages with "Hide default language" from default language does not work
Added by Tizian Schmidlin almost 6 years ago.
Updated almost 5 years ago.
Category:
Site Handling, Site Sets & Routing
Sprint Focus:
On Location Sprint
Description
While working on a customer project, we came accross the use case where the customer wants a page not to be displayed in the default language (for cosmetic purpose in the url mainly) and always links to pages configured this way by adding &L=1
to additional parameters in the wizard.
The link is generated properly and everything works fine when linking from the default language to the other language until the moment where the customer sets the target page to "Hide default translation of page" = true.
IMHO, since the L parameter is set and the page exists in the given language, the url should be rendered.
This bug can be reproduced in TYPO3 8.7.24 with PHP 7.2, using realurl 2.2.1. It could be ruled out that realurl is the culprit.
- Target version changed from next-patchlevel to Candidate for patchlevel
Same here. We're using EXT:link2language to link to such pages, but from looking at its code I assume the problem is in TYPO3 Core.
Is this issue the same? #88685 or related?
- Sprint Focus set to On Location Sprint
- Status changed from New to Needs Feedback
Yeah, i see your point here, but that was conceptually not possible with TYPO3 v8, but should be working with site handling in TYPO3 v9 - can you verify this?
Seems it has been solved on 9.5.14;
My test:
Prerequisites¶
1) TYPO3 with two languages, ITA (default); ENG (ID=1)
procedure¶
1) Create a page "test A" and translate it "test A Eng"
2) Create a page "test B" and translate it "test B Eng"
3) on "test A" create a Headline content element, [header]
: "test header", [header_link]
: open the link wizard and connect to "test B"; on the field "Additional link parameters" write &L=1
4) Open the frontend, the link correctly goes to http://yoursite/en/test-b-eng
5) Open "test B" page > tab language > Localizaton [l18n_cfg]
: check Hide default language of page
Results¶
1) THe italian version of the page is removed from the menus
2) The link on the "test header" element still points to the correct english version of the page
Is this sufficient or a different test is necessary?
- Status changed from Needs Feedback to Closed
Will close this one for now - please let me know if there is still something missing
Also available in: Atom
PDF