From 7503493124b84366a96d20709673549174757c09 Mon Sep 17 00:00:00 2001 From: webdevan Date: Tue, 22 Nov 2016 21:55:24 +0200 Subject: [PATCH] Only remove #modalId from the url on close Fixes #8908 - Made URL retain query string on close of deep-linked modal --- js/foundation.reveal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.reveal.js b/js/foundation.reveal.js index 7cae72d00..df874d0ee 100644 --- a/js/foundation.reveal.js +++ b/js/foundation.reveal.js @@ -453,7 +453,7 @@ class Reveal { this.isActive = false; if (_this.options.deepLink) { if (window.history.replaceState) { - window.history.replaceState("", document.title, window.location.pathname); + window.history.replaceState('', document.title, window.location.href.replace(`#${this.id}`, '')); } else { window.location.hash = ''; } -- 2.47.2