Fixed bug
Changed redirect to throw exception in case of relative URLs