Issue Bug Under Review

#102339Typo3 11 PageLinkBuilder does not take shortcut_mode and target of translated page into account

Sruthi Kumar G 11/07/23, 12:39 updated 11/17/26, 10:34

Description

I have edited shortcut mode and target page of translated page. But in menu the link rendered is based on default language page properties.

tempsnip.png

In this case, it’s always page id 29, not 1117.

Reviews 1

Files 1

History 89

  1. Manfred Egger commented <span data-processor="relativetime" data-value="2023-11-15T10:11:58+00:00" > 11/15/23, 10:11 </span>

    Same problem here. One of our customer heavily relies on different shortcut targets per language and after upgrading to TYPO3 11 (from 8.7) it doesn’t work anymore.

    As far as I could see it’s not only restricted to MenuProcessor. It seems to be a problem in the hole PageLinkBuilder. If you add a link to such a shortcut page e.g. in a text content element, the link is also wrong.

  2. Sruthi Kumar G changed subject Typo3 11 menu processor does not take shortcut_mode and target of translated page into account Typo3 11 PageLinkBuilder does not take shortcut_mode and target of translated page into account <span data-processor="relativetime" data-value="2023-11-15T10:18:12+00:00" > 11/15/23, 10:18 </span>

  3. Sruthi Kumar G commented <span data-processor="relativetime" data-value="2023-11-15T10:21:22+00:00" > 11/15/23, 10:21 </span>

    Yes, this seems to be an issue with PageLinkBuilder.I added a fix I found in a similar issue and it’s fixed for now. But would need a permanent solution rather than a unreliable hotfix.

  4. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-03-31T15:32:49+00:00" > 03/31/24, 15:32 </span>

    I am unsure about how to reproduce this one.

    I have done the following test:

    Prerequisites

    • TYPO3 13.1.0-dev (latest master)
    • two languages: Italian (0) and English (1)
    • Let’s say that I have
      • a page in Italian called “TEST 1”
      • another page “TEST 2” which has been translated “TEST 2 ENG”
      • a menu built in TypoScript:
    page.20 = HMENU
    
    page.20 {
      1 = TMENU
      1.expAll = 1
      1.wrap = <ul>|</ul>
      1.NO.wrapItemAndSub = <li>|</li> 
      1.CUR = 1
      1.CUR.wrapItemAndSub = <li> <strong>current: - </strong>|</li> 
    
      1.ACT = 1
      1.ACT.wrapItemAndSub = <li> <strong>active: - </strong>|</li>   
    
      2 < .1
      3 < .1
    }

    The test

    1. Create a new page “T102339”, type: shortcut page in Italian (main language)
      1. Shortcut Mode: selected page
      2. Shortcut Target: “TEST1”
    2. Translate “T102339” into english ““T102339 ENG”
    3. Edit it
      1. Shortcut Target: Translation behavior: custom value ; select the target “TEST2 ENG”
    4. save and visit the frontend

    Results

    1. in the ITALIAN frontend version of the site, the menu item for the shortcut reads “T102339” and it leads to “TEST1”
    2. in the ENGLISH frontend version of the site, the menu item for the shortcut reads “T102339 ENG” and it leads to “TEST2 ENG”

    Is this the expected behavior? Or is a different test necessary?

    Additional notes

    I’ve found that the interface for the translated shortcut target is a bit confusing: it lets me assign a different target page, but with the option “translation behavior”: Value of default language still selected, so the different target page is not taken into account at all!

  5. Manfred Egger commented <span data-processor="relativetime" data-value="2024-04-02T05:48:50+00:00" > 04/02/24, 05:48 </span>

    It seems that this bug is fixed since TYPO3 12 LTS at least for the HMENU.

    The bug is still present in “normal” links. If i create a link in a text content element to the shortcut page, the link on the translated page points to the wrong place. Tested with TYPO3 12.4.13

  6. Georg Ringer commented and changed TYPO3 Version 11 14 <span data-processor="relativetime" data-value="2026-11-01T08:55:55+00:00" > 11/01/26, 08:55 </span>

    still valid in v14