The end of FormSubmitter::redirectForm() currently has:
$url = $this->urlGenerator->generateFromPath($request->attributes->get('_system_path'), ...
Replace that by injecting $route_match into the constructor, and generating a URL using its route and raw parameters.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | interdiff-2293521-11-16.txt | 2.54 KB | sidharrell |
| #16 | use_route_name_and-2293521-16.patch | 6.39 KB | sidharrell |
| #15 | interdiff-2293521-9-11.txt | 1.28 KB | sidharrell |
| #15 | interdiff-2293521-6-9.txt | 10.83 KB | sidharrell |
| #11 | 2293521-11.patch | 6.3 KB | rpayanm |
Comments
Comment #1
xjmComment #2
dawehnerHere is one.
Comment #4
dawehnermeh
Comment #6
dawehnerReasons for this interdiff: ElementsTableSelectTest executes form processing code in a simpletest, so the route name is not set on the route match object.
Comment #8
mgiffordComment #9
rpayanmtrying...
Comment #10
tim.plunkettThis still needs to be outside of that, left as-is. See the if() case above
This should be in the elseif
Comment #11
rpayanm@tim.plunkett thank you.
here the patch
Comment #14
mgiffordSo PHP Fatal error introduced in:
Ok, so what has all() been replaced with in getRawParameters()?
Comment #15
sidharrell commented@rpayanm you should really install dreditor, the browser extension. It'll give you a button in the files section where you go to upload your patch with a "patchname suggestion" button. It'll help give you a standard patchname for the issue. Not to pick on you, the other two prior posters didn't use it either, it's just getting to be a pet peeve. If we all just used the patchname suggestion button, it would make creating the interdiffs so much easier.
And that is one thing you really should do, @rpayanm, when submitting patchs, is submit a corresponding interdiff at the same time. It helps everyone who is following the issue.
Attaching interdiffs from 6 to 9, and 9 to 11.
Comment #16
sidharrell commentedStraight reroll of #11.
Let us see where Testbot is the most angry.
Comment #17
sidharrell commenteddrink Druplicon!
Comment #20
dawehnerSorry but this is basically a duplicate of #2372507: Remove _system_path from $request->attributes :(
Comment #22
sidharrell commented