public static RouteCompiler::getPathWithoutDefaults(Route $route)
Returns the path of the route, without placeholders with a default value.
When computing the path outline and fit, we want to skip default-value placeholders. If we didn't, the path would never match. Note that this only works for placeholders at the end of the path. Infix placeholders with default values don't make sense anyway, so that should not be a problem.
Parameters
\Symfony\Component\Routing\Route $route: The route to ha