remove a useless slash in the redirected url for public routes