title: How to add an variable value in between the hyperlink in javascript
body: <p>I am sending an email via javascript. In <code>mail.parameter.text property</code> I need to send the hyperlink. In the code below I am hardcoding the url whick looks very lengthy and also I need to add the <code>/dashboard</code> at the end of the url. Any idea on how to shorten the url?</p>
  
  <pre><code>var parent = space.getParent();
  var siteGroup = "GROUP_EMAIL_CONTRIBUTORS";
  var mail = actions.create("mail");
  mail.parameters.to_many = siteGroup;
  mail.parameters.subject="New Site Created in Community"
  mail.parameters.text=" A new site called " + document.properties.name +"is created.Click http://pc1:8080/share/page/site/"+document.properties.name+"/dashboard"+"   to join the site";
  
  //execute action against a document
  mail.execute(document);
  </code></pre>
  
  <p>Sorry if this is a basic question I dont know javascript. This is my entire script and I am not using any html tags in between.</p>