add support for relative redirection