Project

General

Profile

Actions

Bug #88062

closed

RouteEnhancer not applied to form with GET-method

Added by Philipp Seiler about 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2019-04-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
route,routeenhancer,enhancer,link,form,get
Complexity:
Is Regression:
Sprint Focus:

Description

  • Create simple form with method="get".
  • Form contains a field e.g. <input type="text" name="foo" />.
  • When submitting the form, the field will be added to the url: http://www.domain.tld/my/site?foo=bar
  • Defining a RouteEnhancer for this URL will not rewrite the URL.
Search:
    type: Plugin
    limitToPages:
        - 123
    namespace: tx_plugin
    requirements:
        foo: '[a-zA-Z0-9-*]+'
    routePath: '/{foo}'
  • Defining a simple link will work however: <f:link.page pageUid="123" additionalParams="{tx_plugin: {foo: 'bar'}}">link</f:link.page>.
    Output: http://www.domain.tld/my/site/bar
Actions

Also available in: Atom PDF