From 3fc9dcf5eec602add82d14a25ce656e35f317722 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,