Update 9 - use mainUrl instead of referer