From 9f4f4491c80d9ff9d6d66e184de417990b693d3e Mon Sep 17 00:00:00 2001 From: Dominique Clijsters Date: Fri, 9 Sep 2016 11:05:41 +0200 Subject: [PATCH] Fix for faulty on selector Add missing quotation marks to hash --- js/foundation/foundation.magellan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.magellan.js b/js/foundation/foundation.magellan.js index 8d1aae3a5..37c35fd1a 100644 --- a/js/foundation/foundation.magellan.js +++ b/js/foundation/foundation.magellan.js @@ -32,7 +32,7 @@ S(self.scope) .off('.magellan') - .on('click.fndtn.magellan', '[' + self.add_namespace('data-magellan-arrival') + '] a[href*=\\#]', function (e) { + .on('click.fndtn.magellan', '[' + self.add_namespace('data-magellan-arrival') + '] a[href^="#"]', function (e) { var sameHost = ((this.hostname === location.hostname) || !this.hostname), samePath = self.filterPathname(location.pathname) === self.filterPathname(this.pathname), testHash = this.hash.replace(/(:|\.|\/)/g, '\\$1'), -- 2.47.2