Getting host name using HTL
Hi Team,
I want to get the host name according to environments such as author , publisher and despatcher.
So I tried using java script like below.
window.location.hostname;
but my code is inside base page component. So it is saying window is not defined. Is there any way we can get the host name using HTL ?
Thanks in advance.
