From 1ed419525e104d514287cec100248fbedb18886a Mon Sep 17 00:00:00 2001 From: Sam Marks Date: Thu, 4 Jun 2015 15:54:34 -0400 Subject: [PATCH] Make sure that going back to the first tab actually updates the hash. --- js/foundation/foundation.tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.tab.js b/js/foundation/foundation.tab.js index da042186d..45d15c6f0 100644 --- a/js/foundation/foundation.tab.js +++ b/js/foundation/foundation.tab.js @@ -179,7 +179,7 @@ // the user would get continually redirected to the default hash. var default_hash = settings.scroll_to_content ? self.default_tab_hashes[0] : 'fndtn-' + self.default_tab_hashes[0].replace('#', ''); - if (hash !== default_hash) { + if (hash !== default_hash || window.location.hash) { window.location.hash = hash; } }; -- 2.47.2