fixed url rewrite after logout