def make_absolute(route, url_prefix):
    """Creates an absolute route without trailing slash.
    """
    route = route.lstrip('/').rstrip('/')
    if url_prefix:
        return '/' + url_prefix.lstrip('/').rstrip('/') + '/' + route
    return '/' + route