Quellcode durchsuchen

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 vor 5 Jahren
Ursprung
Commit
b4c6c92033
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  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,