diff --git a/js/foundation.tabs.js b/js/foundation.tabs.js index 55a0b7f5e2..c44c1e435d 100644 --- a/js/foundation.tabs.js +++ b/js/foundation.tabs.js @@ -269,9 +269,9 @@ class Tabs extends Plugin { //either replace or update browser history if (this.options.deepLink && !historyHandled) { if (this.options.updateHistory) { - history.pushState({}, '', anchor); + history.pushState({}, '', location.pathname + location.search + anchor); } else { - history.replaceState({}, '', anchor); + history.replaceState({}, '', location.pathname + location.search + anchor); } }