conditional http referrer for link