added a small fix for supporting passing relative url's to redirect()