Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
b4c6c92033
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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,