fix relative redirects