add option to make local relative redirects