Issue Bug Closed

#106895Info box for page type "Link to external URL" should return current language

Tibor Legat 06/17/25, 10:56 updated 12/02/25, 14:21

Description

We use “Link to external URL” for social media links and as such we need distinct URLs per language.
It turns out that the Info box in the content section (.callout-info) outputs the default language content in both, Layout and Language Comparison view.

So, it shows language-agnostic information that becomes obvious when viewing multiple languages in the Language Comparison view but it’s rather misleading in Layout view where I see all contents in a given language. The info message should therefore be correct for the current language or be more precise (regarding the language the URL is taken from).

Attached are examples for a project with “de” as default language where another language is selected.

Solution ideas:
- show URLs for all languages (might result in a quite large list)
- show URLs for shown languages (especially for Language Comparison View)
- show URL for the current language

Reviews 3

Files 1

History 1114

  1. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-06-17T12:52:17+00:00" > 06/17/25, 12:52 </span>

    I think we might need to seperate these two issues.

    While the second issue in the page module should be fixable with its context, the first issue with the tooltip is not so clear.

    Other editors might see much value in getting the default URL here. We could make the popup list all possible URLs for all languages, but then the tooltip would get big, and we can no longer use the native browser ‘title’ for this. Adding a feature toggle or userTSConfig for this might also seem overly complicated. Personally, I would tend to say that seeing the default language URL in the tooltip is acceptable. BackendUtility::titleAttribForPages() neither uses events nor other ways to allow to hook into “tooltip” yet to allow changes to it, and doing that would have serious performance implications to the generation of the page tree.

    The PSR-event https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Events/Events/Backend/AfterPageTreeItemsPreparedEvent.html would allow to post-filter the tooltips. You could implement this in your project to remove the extra link information – or even try to “stuff” all possible languages into the tooltip.

    So maybe we could focus this issues on fixing the first problem with the page layout infopopup, but split off the second part of it (or maybe even close it if you’re good with using the PSR event…), what do you think?

  2. Tibor Legat commented <span data-processor="relativetime" data-value="2025-06-18T14:43:39+00:00" > 06/18/25, 14:43 </span>

    Hi @ghi,
    thanks for the quick reply. I’m fine with splitting the issue up, so in terms of workflow I basically just edit the issue itself now, right? (my first issue:) )

    Regarding the tooltip – probably adding the source language as prefix would be beneficial in both regards, keeping a simple, one-line approach and yet adding information to avoid confusion.
    I was wondering how it’s handled elsewhere in the system and whether there are other situations where the used language isn’t obvious. I thought of the translation process where you get an info field below the translation field with the original content which contains of the language flag and the content. I guess it would be ok to use the language title as prefix here. What do you think? I’ll move the content to another ticket then.

  3. Tibor Legat commented <span data-processor="relativetime" data-value="2025-08-08T10:37:35+00:00" > 08/08/25, 10:37 </span>

    Is there something else to do, so we can move on from “Needs feedback”? @ghi

  4. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-08-08T12:17:59+00:00" > 08/08/25, 12:17 </span>

    Hey there,

    Sorry for the lack of feedback – I had it on my list but just couldn’t get to it.

    I would say:

    • Let’s use this ticket to implement the “have all languages listed in the infobox”. Would you want to try a patch yourself maybe?
    • Create a second new issue, relate it to this one.
      Let it be about “adjusting tooltip”. First idea would be adding the prefix. Maybe you would also try to offer a patch for it too?
    • Then we could identify more places in the UI that you indicated to enhance upon too. If they are “low hanging fruits”, include them in the patch of the second issue. Else, create a third issue for the findings.

    Does that sound reasonable? I’ll try to help along the way gladly. :)

  5. Tibor Legat commented and changed subject Target URL indicators for page type "Link to external URL" are misleading Info box for page type "Link to external URL" should return current language description <span data-processor="relativetime" data-value="2025-08-11T07:55:39+00:00" > 08/11/25, 07:55 </span>

    I updated the issue and hope to come back with a patch proposal.

  6. Gerrit Code Review pushed patch set 1 for main to change 91564 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2025-11-11T17:28:56+00:00" > 11/11/25, 17:28 </span>

  7. Andreas Nedbal commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-11-11T19:35:08+00:00" > 11/11/25, 19:35 </span>

    Applied in changeset commit:f4bef33677fb3edc5a6b1e891e46b62114e01c22.