I have a website on the host example.myhost.com but I also have a subdomain for the French fr.example.myhost.com , which is different from example.myhost.com.
If I'm at fr.example.myhost.com and I use window.location.href , I get example.myhost.com instead of fr.example.myhost.com .
How to get the URL specified in the address bar of the browser?
source share