fix redirect. sometimes referrer is the same as the original url for some reason.