Fix redirecting with route names.