Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
Fixed not bing able to follow same inner links twice with history:false
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rparree committed Mar 15, 2019
1 parent 0b3e783 commit b4c6c92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b4c6c92

Please sign in to comment.