Project

General

Profile

Actions

Bug #88209

open

Route enhanced parameters not added when using addQueryString

Added by Rudy Gnodde about 5 years ago. Updated about 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-04-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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)


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #91741: RouteEnhancer affects option addQueryString of TypoLinkNew2020-07-03

Actions
Actions

Also available in: Atom PDF