From: Quinn Comendant Date: Wed, 15 Jul 2015 17:43:56 +0000 (-0500) Subject: Fix to include query arguments to magella nav links. X-Git-Tag: v5.5.3~40^2~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6703%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Fix to include query arguments to magella nav links. --- diff --git a/js/foundation/foundation.magellan.js b/js/foundation/foundation.magellan.js index f6d0d4b19..c2d4ce994 100644 --- a/js/foundation/foundation.magellan.js +++ b/js/foundation/foundation.magellan.js @@ -59,11 +59,10 @@ 'scrollTop' : scroll_top }, settings.duration, settings.easing, function () { if (history.pushState) { - history.pushState(null, null, anchor.pathname + '#' + hash); + history.pushState(null, null, anchor.pathname + anchor.search + '#' + hash); + } else { + location.hash = anchor.pathname + anchor.search + '#' + hash; } - else { - location.hash = anchor.pathname + '#' + hash; - } }); } })