From: Sam Marks Date: Thu, 4 Jun 2015 19:54:34 +0000 (-0400) Subject: Make sure that going back to the first tab actually updates the hash. X-Git-Tag: v5.5.3~61^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F6607%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Make sure that going back to the first tab actually updates the hash. --- 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; } };