Skip to content
Snippets Groups Projects

Use window.location

1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -7,6 +7,10 @@
'use strict';
Drupal.AjaxCommands.prototype.pageReload = function () {
location.reload();
// Reload the page without possible form resubmit:
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
window.location = window.location.href;
};
})(window.location);
Loading