Bug #104344
openSometimes TYPO3 renders all links of a page with empty href attribute
0%
Description
Hello,
TYPO3 sporadically renders all href attributes of links with empty URL.
In one of our projects I first detected it within the paginator of EXT:news, but as news just uses the typolink call, it can not be a news issue.
Just yesterday we had another customer where all href attributes of a page are empty. After a clear cache the URLs are rendered again. The URLs are mostly built with MenuDataProcessor, but there are also a lot of URLs from content elements (RTE) without href content.
While tracing the generated cache entry I found out, that the website was called with following URL:
https://example.com/index.php=12&L=612&no_cache=1
So, calling the page with a non configured language ID results in such empty href attributes.
In yesterdays installation I found following TS:
config.linkVars = L(int)
Sure, with such a config the URL is valid, but it is damn hard to debug. Do you see any possibility to prevent empty href attributes on Core site?
Thank you
Stefan
Updated by Stefan Froemken 4 months ago
- Related to Bug #104215: MenuProcessor: Empty link-attributes for items added
Updated by Lina Wolf 4 months ago
This TypoScript setting is set by the boostrap package:
https://github.com/benjaminkott/bootstrap_package/issues/1165
And might have been copied by various different sitepackages
Updated by Garvin Hicking 4 months ago
Should we remove TYPO3 core internal URI argument keys from being set in linkVars? Like L, no_cache, id...?
Updated by Gerrit Code Review 4 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Gerrit Code Review 4 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Gerrit Code Review 4 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Gerrit Code Review 4 months ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Gerrit Code Review 4 months ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Gerrit Code Review 4 months ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Gerrit Code Review 3 months ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Gerrit Code Review 3 months ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Gerrit Code Review 3 months ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Benni Mack about 1 month ago
- Target version changed from 13 LTS to Candidate for Major Version
Updated by Gerrit Code Review about 1 month ago
Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85215
Updated by Philipp Parzer 28 days ago
not sure if linkVars is the problem here - in my instance config.linkVars is NOT set and have the same problem too
working a lot with language fallbacks
error occured after updating from V11 to V12
Updated by Garvin Hicking 27 days ago
Philipp Parzer wrote in #note-16:
not sure if linkVars is the problem here - in my instance config.linkVars is NOT set and have the same problem too
working a lot with language fallbacks
error occured after updating from V11 to V12
Are you sure that no 3rd party extension is setting this? Bootstrap package for example does this.