Browse Source

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
Raphael Parree 5 years ago
parent
commit
b4c6c92033
1 changed files with 4 additions and 0 deletions
  1. 4 0
      js/reveal.js

+ 4 - 0
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,