]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix to include query arguments to magella nav links. 6703/head
authorQuinn Comendant <quinn@strangecode.com>
Wed, 15 Jul 2015 17:43:56 +0000 (12:43 -0500)
committerQuinn Comendant <quinn@strangecode.com>
Wed, 15 Jul 2015 17:43:56 +0000 (12:43 -0500)
js/foundation/foundation.magellan.js

index f6d0d4b191e7a868be2f413ef352ab1d9ca05026..c2d4ce9948ace345cc2e515df1f5eaf0d11e2b83 100644 (file)
               '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;
-                    }
             });
           }
         })