Issue Bug Rejected

#101195DataProcessing MenuProcessor can't handle Link to External URL without connection to a route page

David Gurk 06/29/23, 07:58 updated 03/13/25, 20:20

Description

Setup

  • TYPO3 v11.5.28
  • multi page setup
  • within the page tree a directory “MetaNavi” for the meta navigation besides the route pages, which holds the meta links for all websites
    clipboard-202306290945-xawbw.png
  • Dataprocessor in TypoScript:
20 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
20 {
    special = directory
    special.value := getEnv(GLOBAL_META_NAVI_PID)
    levels = 1
    as = metaNavi
    expandAll = 1
    titleField = nav_title // title
}
  • Simple template in Fluid:
<f:for each="{metaNavi}" as="metaNaviItem">
    <a class="meta-link" href="{metaNaviItem.link}">{metaNaviItem.title}</a>
</f:for>

Expectation

Links to internal and external URLs are resolved:

<a class="meta-link" href="/">Unternehmen</a>
<a class="meta-link" href="https://karriere.example.de/">Karriere</a>
<a class="meta-link" href="https://test.example.de/">Test</a>
<a class="meta-link" href="https://www.duckduckgo.com">External 1</a>
<a class="meta-link" href="https://www.google.com">External 2</a>

What happens

The external links are missing:

<a class="meta-link" href="/">Unternehmen</a>
<a class="meta-link" href="https://karriere.example.de/">Karriere</a>
<a class="meta-link" href="https://test.example.de/">Test</a>
<a class="meta-link" href="">External 1</a>
<a class="meta-link" href="">External 2</a>

What we know so far

  • In TYPO3 v10 the described setup worked. After upgrading to v11 the meta navigation got broken.
  • When debugging “{metaNavi.0}” within Fluid, the “link” property is empty, while within the {metaNavi.0.data.url} the external URL is available.
  • When moving the directory “MetaNavi” into one of the available root pages, the external links are resolved correctly.
  • I expect a bug within TypoScript, which is hard to debug for me. in d

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.