Reputation: 7299
here is an existing link
<a class="link-item" href="{#url_site#}/plongee-{$post.nom_pays|sluggable}/{$post.nom_forfait|sluggable}-{$post.id_forf}">Voir l'offre</a>
I am trying to pass a variable to the next page. I have added:
<a class="link-item" href="{#url_site#}/plongee-{$post.nom_pays|sluggable}/{$post.nom_forfait|sluggable}-{$post.id_forf}?test=test">Voir l'offre</a>
the next page url is
http://dev.amv-voyages.fr/plongee-egypte/dune-sejour-plongee-petit-budget-safaga-sans-vols-1387?test=test
but
echo '<pre>get';
print_r($_GET);
echo '</pre>';
returns empty.
Please help :)
Upvotes: 0
Views: 1726
Reputation: 2622
<a class="link-item" href="{#url_site#}/plongee-{$post.nom_pays|sluggable}/{$post.nom_forfait|sluggable}-{$post.id_forf}&test=test">Voir l'offre</a>
Please try this as already there are multiple slashes it means in the rewrite rule already the '?' is used to take the first parameter so all other parameters should use '&' after the first one.
Upvotes: 1