title: I would like to generate via javascript a url to the current page and to add two parameters
body: <p>I'm using the sharethis plugin in a smarty template. And in the twitter is shared link which looks so : </p>
  
  <pre><code>&lt;span class='st_twitter_large' st_via="mediajobscom" st_url="MY URL HERE" displayText='Tweet'&gt;
  </code></pre>
  
  <p>I would like to generate via javascript a url to the current page and add two parameters to the url like <code>?featuredid=id?featuredname=name</code>: </p>
  
  <pre><code>http://domain.com/currentpageisurl?featuredid=id?featuredname=name
  </code></pre>
  
  <p>I don't have much knowledge with javascript please try to make things clear to me, especially what i need to insert to <code>st_url="THE CODE HERE"</code>.</p>
  
  <p>Any help would be very much appreciated!</p>