Actions
Bug #88062
closedRouteEnhancer not applied to form with GET-method
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Site Handling, Site Sets & 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}'
- URL after submit stays http://www.domain.tld/my/site?foo=bar.
- 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
Updated by Benni Mack over 4 years ago
- Status changed from New to Needs Feedback
Yeah, I get the point, but how do you consider doing that? I had the same issue and it just did not work with ALL the referrer parameters with GET at all. I actually XCLASSes the FormViewHelper to avoid these parameters in general. Then one would need to add the controller+action to it, but then some input field might be related to that but the input field has "name="myext[customer]" value="2"> - this would only be possible to rebuild everything in JS again before submission?
Updated by Benni Mack about 4 years ago
- Status changed from Needs Feedback to Closed
Hey Philipp,
I'm closing this issue here, as I didn't get any feedback, to be honest - this cannot be solved without custom JavaScript and a re-implemnation of a Router in JavaScript itself...
Actions