0

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.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.