RouteManager
From any of your Controller or Components you can redirect to a route for that you'll have to call
PLASMA.routeManager.redirectTo("myRouteName"
You can also get the params values using :
PLASMA.routeManager.getRoutesData().id
in the case above we want the value of the param called id
From TWIG
You can get the routeName from TWIG using : getRouter()
You can redirect create a link to a route using this {{ path("myRouteName") }}
Last updated