Updated query string to referer rather than ref