From b4c6c920337aee02e563828c40a546b82a2dc47b Mon Sep 17 00:00:00 2001 From: Raphael Parree Date: Fri, 15 Mar 2019 08:45:43 +0100 Subject: [PATCH] Fixed not bing able to follow same inner links twice with history:false MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Scenario: - history set to false in Reveal’s config - follow anchor to `/#someid` - navigate to other sections - follow anchor to same section `/#someid` This does not work as the hash has not changed. This fix removes the hash from the URL when navigating --- js/reveal.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/reveal.js b/js/reveal.js index 3c31b973774..7ac60909726 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -4033,8 +4033,12 @@ else if( currentSlide ) { window.location.hash = locationHash(); } + } else { + window.location.hash = ''; } + + } /** * Retrieves the h/v location and fragment of the current,