I have a site with a custom url set up so that if
http://mycustomdomain.com is entered into the browser then the CNAME record for that domain redirects to the underlying Salesforce domain for my site
window.location.href = "http://" + window.location.host + "/mysite/mypage?param="+param
window.open(http://" + window.location.host + "/mysite/mypage?param=param", "_blank");
I notice that when the
window.location.href is set then when the page changes the url in the browser is simply
http://mycustomdomain.com without any parameter information. But when I use the
window.open() function to open a new tab in the browser, the url set in that new tab is
I find it odd that the url would remain the custom domain with one method, but would revert to the Salesforce domain name in the other.
Is there a reason this is happening, or any way to prevent it without hard-coding the custom domain name?
I'd also be interested to know why, when the custom domain name, is showing, there are no parameters showing.