Refactor parseUrl() to return more information including the type of route (hash vs regular) and start and end offsets of the path.
This can be used to implement something like trailingSlash="redirectToMatching" where this route /test/route could be redirected to /test/route/ if it is defined as a path.
This can also simplify routeArguments() so that it doesn't have to figure out if it's a hash path a second time.
Refactor
parseUrl()
to return more information including the type of route (hash vs regular) and start and end offsets of the path.This can be used to implement something like
trailingSlash="redirectToMatching"
where this route/test/route
could be redirected to/test/route/
if it is defined as a path.This can also simplify
routeArguments()
so that it doesn't have to figure out if it's a hash path a second time.