Старая тема, но у меня была такая же проблема, поэтому я решил, что поделюсь своим решением!
Полезная ссылка gulriz предоставлена. Мы реализовали его здесь: www.learnerds.com
На странице назначения, мы использовали этот код:
<script>
var url = window.location.href; \\ grabs the complete url with the query strings
var temp = new Array(); \\ creates an array that will store our values
temp = url.split('?'); \\ this function splits the url into 2 parts
\\ temp[0] (everything before the question mark) & temp[1] (everything after the question mark)
disqus_url = temp[0]; \\sets the disqus_url to be the same regardless of query strings
</script>
Вы могли бы также, вероятно, сделать window.location.href.split ('?') [0] для меньше линий кода.
Надеюсь, что это поможет!