Fix several redirects in frontend and admin