Fix location redirect