Empty href="" on arbitary pages

I have an installation of TYPO3 12.4.16, using b13/container ^2.2 bk2k/bootstrap-package ^14.0, helhum/typo3-console ^8, mask/mask ^8.0 and pagemachine/typo3-formlog “^2.2”.

My custom site package contains no custom classes, just some TypoScript and scss.

Each time I delete the cache on some, but not all pages the href attribute of all internal links is empty, resulting in links like <a href="" title="Imprint"> and a page that the visitors cannot leave again.

Each time I deletete the cache it happens to some but not all pages. Some are ok, others aren’t and it is not the same pages each time.

I found Bug #104215: MenuProcessor: Empty link-attributes for items - TYPO3 Core - TYPO3 Forge and Leere href in der Navigation mit dataProcessing — TYPO3 Forum none of which seems to have found a solution.

I suspect it had something to do with bots requesting the robots.txt which did not exist and therefore caused 404’s. It seems like creating a robots.txt helped.

1 Like

Most likely the source of the problem was Bug #104344: Sometimes TYPO3 renders all links of a page with empty href attribute - TYPO3 Core - TYPO3 Forge

config.linkVars = L(int)

And the setting was made by the bootstrap_package: [BUGFIX] Remove outdated language settings causing empty links by linawolf · Pull Request #1494 · benjaminkott/bootstrap_package · GitHub