rocket.man created an issue. See original summary.
Changes are still relevant. I have checked the patch.
Issue #2854819 by rocket.man, andrey.troeglazov: Replace deprecated url...
Thanks @rocket.man and @andrey.troeglazov, I've committed this to the dev branch.
+++ b/src/Form/RelationshipConfigure.php @@ -115,7 +116,8 @@ abstract class RelationshipConfigure extends FormBase { - $response->addCommand(new RedirectCommand($this->url($route_name, $route_parameters))); + $url = Url::fromRoute($route_name, $route_parameters); + $response->addCommand(new RedirectCommand($url));
The deprecated Drupal\Core\Routing\UrlGeneratorTrait::url returns a string. After the patch, Url object is assigned instead, so it fails everywhere.
Since this was committed, I opened a new issue for this, #3033651: AJAX forms broken after URL refactoring, string expected instead of object
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #2
bkhandruk commentedComment #3
andrey.troeglazov commentedChanges are still relevant. I have checked the patch.
Comment #5
joelpittetThanks @rocket.man and @andrey.troeglazov, I've committed this to the dev branch.
Comment #6
manuel.adanThe deprecated Drupal\Core\Routing\UrlGeneratorTrait::url returns a string. After the patch, Url object is assigned instead, so it fails everywhere.
Since this was committed, I opened a new issue for this, #3033651: AJAX forms broken after URL refactoring, string expected instead of object