Use location.url() because it's more complete.
Do not fetch lab_proxy if id is 0.