Exposed url parts to routes, refs #2120