create a redirect URL based on current url or allow one to be passed in