location redirect fix

Signed-off-by: Blaise Fonseca <blaisefonseca@hotmail.com>