Fix helper to render correct URL on empty path prefix