code in line 97 only considers the route pattern, not route path, throwing an error when modules use 'path' rather than 'pattern', like (amongst others) the devel module.

        $route = new Route($route_info['pattern'], $route_info['defaults'], $route_info['requirements'], $route_info['options']);

Suggested fix:

        $path = isset($route_info['pattern']) ? $route_info['pattern'] : $route_info['path'];
        $route = new Route($path, $route_info['defaults'], $route_info['requirements'], $route_info['options']);

Comments

Crell’s picture

I believe the shift from "pattern" to "path" happened after alpha3. Please try on 8.x head and make sure it is using "path", which is what everything should be using right now.

dawehner’s picture

Status: Active » Fixed

Yeah it uses path now and that all over the place, pattern is not supported anymore.

dawehner’s picture

Issue summary: View changes

fix truncated suggested code

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.