#88209Route enhanced parameters not added when using addQueryString
Description
When using addQueryString in a typolink or link ViewHelper the parameters of a route enhanced URL aren’t added.
For example: I have a news detail page with the URL https://domain.tld/news/article/news-title. If I add a typolink to that page with “addQueryString = 1” I get the URL https://domain.tld/news
The TypoScript I used to test this is:
lib.test = TEXT
lib.test {
value = Test
typolink {
parameter = 9
addQueryString = 1
}
}
The route enhancement is done with the following configuration in the site config:
News:
type: Extbase
limitToPages:
- 9
extension: News
plugin: Pi1
routes:
- { routePath: '/article/{news_title}', _controller: 'News::detail', _arguments: {'news_title': 'news'} }
defaultController: 'News::detail'
aspects:
news_title:
type: PersistedAliasMapper
tableName: tx_news_domain_model_news
routeFieldName: path_segment
This is also a problem in the f:link.page ViewHelper (and probably other link, form and uri ViewHelpers)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.