Fixed - Adding parameter to link, then redirect results in amp; in $_GET
<p>// Edit
FIXED: I fixed it by moving the code to the HTML head, removing it from the Smart html template file. Seems smarty messed it up in some way. Thx for your help :]
// Edit</p>

<p>How do I correctly add a parameter to a link with jquery? I've now read various threads here about that, but I can't get it to work right. </p>

<p>In detail, if the user clicks a certain link on click I want to get the value of an input, afterwards add it to the clicked link and redirect the user with the new url with the added parameter.</p>

<p>Everything works just fine, but when I dump the $_GET with Php on the target URL I always end up with amp;parameter_name instead of parameter_name. What I do:</p>

<pre><code>$('#add-item-wishlist').bind('click', function(e) {
// get quantity from input
var current_qty = $('.inp-qty').val();

//redirect user
e.preventDefault();
window.location.href = $(this).attr("href") + '&amp;qty=' + current_qty;

});
</code></pre>

<p>&amp;qty always results in amp;qty if I dump with php, so does the check inside the php script fail.</p>

<p>// edit
may I mention that i use this snippet in en enviroment with Smarty Template Engine?</p>
