I've got a variable that gets the server url of the user:
var server = parent.Xrm.Page.content.getClientUrl;
I want to use that variable to be the first part of a html link and add the page name to the end of it to generate links for different pages. For example for the home page I need the a href to be a combination of var server and /homepage. I tried the following:
<a href="" onclick="this.href = 'server'+'/homepage" target="_blank">
But this didn't work. Any solution would be appreciated!