Line 749: | Line 749: | ||
// Add hash (#) to URL when done scrolling (default click behavior) | // Add hash (#) to URL when done scrolling (default click behavior) | ||
window.location.hash = hash; | window.location.hash = hash; | ||
+ | window.location.assign(); | ||
// Using jQuery's animate() method to add smooth page scroll | // Using jQuery's animate() method to add smooth page scroll | ||
// The optional number (200) specifies the number of milliseconds it takes to scroll to the specified area | // The optional number (200) specifies the number of milliseconds it takes to scroll to the specified area |
Revision as of 09:13, 19 October 2019