aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Parree <rparree@edc4it.com>2019-03-15 08:45:43 +0100
committerRaphael Parree <rparree@edc4it.com>2019-03-15 08:45:43 +0100
commitb4c6c920337aee02e563828c40a546b82a2dc47b (patch)
tree194580eabe7cd2cf5804fb4f6e96175237400e8b
parent0b3e7839ebf4ed8b6c180aca0abafa28c67aee6d (diff)
downloadperl-software-in-gnu-guix-b4c6c920337aee02e563828c40a546b82a2dc47b.tar
perl-software-in-gnu-guix-b4c6c920337aee02e563828c40a546b82a2dc47b.tar.gz
Fixed not bing able to follow same inner links twice with history:false
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
-rw-r--r--js/reveal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 3c31b97..7ac6090 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,