Wrong routing in Drupal when path has parameters

by Ferran   Last Updated January 13, 2018 13:07 PM

I am developing a web in Drupal 8 and I have an issue with the routing.

When I am in a view that has parameters (foo/{foo}) if navigate clicking in a menu for example or performing a Url::fromRoute does not work as expected. If I want to acces for example to /test when I am in foo/{foo} it will redirect me to foo/test.

Any clues on that?

Thanks.

Tags : routes uri


Related Questions


How do you set a one-off access checker on a route?

Updated December 01, 2016 08:03 AM

add class to LI

Updated December 25, 2016 08:03 AM


Routing match everything

Updated January 10, 2017 08:03 AM