made redirection relative instead of absolute