What happened to referer header?

Yeah the solution to this change is to use AP.getLocation