Fix same hostname referrer