Got some different web applications: - test.com - search.test.com - mysite.test.com - awesome.test.com .. etc
I'm trying to make a global meny that always takes you back to the "test.com" site. Since we have different environments I cannot hard-code the url's in the menu. Is there a way to get only "test.com" using location or window in javascript.(or something else)
I only want the "main" host url.