Closed georgringer closed 2 years ago
Using a TsConfig like this
TCEMAIN.preview { tx_news_domain_model_news { useCacheHash = 1 previewPageId = {$pages.blogPreview} useDefaultLanguageRecord = 0 fieldToParameterMap { uid = tx_news_pi1[news_preview] } additionalGetParameters { tx_news_pi1.controller = News tx_news_pi1.action = detail } } }
will create a wrong URL for the snippet preview in TYPO3 10.4 and yoast_seo:dev-master
The additionalGetVars in UrlService::generateUri will be
UrlService::generateUri
%26tx_news_pi1%255Bnews_preview%255D%3D5%26tx_news_pi1%255Bcontroller%255D%3DNews%26tx_news_pi1%255Baction%255D%3Ddetail%26cHash%3Db84155cf8281d18175d4567c8514cba9
by using $additionalGetVars = rawurldecode($additionalGetVars); it will be
$additionalGetVars = rawurldecode($additionalGetVars);
&tx_news_pi1%5Bnews_preview%5D=5&tx_news_pi1%5Bcontroller%5D=News&tx_news_pi1%5Baction%5D=detail&cHash=b84155cf8281d18175d4567c8514cba9
which will end up after parse_str with
parse_str
Please give us a description of what happened.
Using a TsConfig like this
will create a wrong URL for the snippet preview in TYPO3 10.4 and yoast_seo:dev-master
The additionalGetVars in
UrlService::generateUri
will beby using
$additionalGetVars = rawurldecode($additionalGetVars);
it will bewhich will end up after
parse_str
withHow can we reproduce this behavior?
Technical info