Preserve location hash in referer