From 3214c66f3b00ecbb52f15833cf60fada28cfe8b7 Mon Sep 17 00:00:00 2001 From: Quinn Comendant Date: Wed, 15 Jul 2015 12:43:56 -0500 Subject: [PATCH] Fix to include query arguments to magella nav links. --- js/foundation/foundation.magellan.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; - } }); } }) -- 2.47.2