Fix routes declarations.
Save the request object in the scope for access to route_url.