Ensure referrer saving works on https
Tweaks ot embed