Skip to content

Commit

Permalink
SAK-42553 - Accessibility Jump to content gives nav alert (sakaiproje…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonespm authored and Miguel Pellicer committed Oct 7, 2019
1 parent 01300a9 commit a43d8d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/src/webapp/js/headscripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,11 @@ function disableBackButton(message) {
if (supports_history_api()) {
history.pushState(null, null, '');
window.addEventListener('popstate', function(event) {
// If there is a hash in the URL don't do anything.
// These are used in a11y jumps and on some Samigo features
if (window.location.hash) {
return;
}
history.pushState(null, null, '');
window.alert(message);
});
Expand Down

0 comments on commit a43d8d0

Please sign in to comment.