Utility for generating URLs relative to the predefined routes and for handling the redirects.