When using $link = $_SERVER['QUERY_STRING']; in page.tpl.php the result of print is:
Is there a way to correct the url to print as:
f1=All&f2[value][year]=2009&f2[value][month]=1 Thanks.

1 Answer 1


You just need to decode the string with urldecode():

$query_string = urldecode($_SERVER['QUERY_STRING']);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.