Project

General

Profile

Actions

Bug #88260

closed

Linking to translations of pages with "Hide default language" from default language does not work

Added by Tizian Schmidlin almost 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Start date:
2019-05-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
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.

Actions #1

Updated by Benni Mack almost 5 years ago

  • Target version changed from next-patchlevel to Candidate for patchlevel
Actions #2

Updated by Lorenz Ulrich almost 5 years ago

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.

Actions #3

Updated by Riccardo De Contardi over 4 years ago

Is this issue the same? #88685 or related?

Actions #4

Updated by Susanne Moog over 4 years ago

  • Sprint Focus set to On Location Sprint
Actions #5

Updated by Benni Mack over 4 years ago

  • 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?

Actions #6

Updated by Riccardo De Contardi about 4 years ago

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?

Actions #7

Updated by Benni Mack about 4 years ago

  • Status changed from Needs Feedback to Closed

Will close this one for now - please let me know if there is still something missing

Actions

Also available in: Atom PDF