diff --git a/addons/website/static/src/js/content/snippets.animation.js b/addons/website/static/src/js/content/snippets.animation.js index 9381d861d417237feba7b5c0edfbf0d0ba3f2922..4b1b08d79e4d5dc9a816ef90f9b005f6b798ca48 100644 --- a/addons/website/static/src/js/content/snippets.animation.js +++ b/addons/website/static/src/js/content/snippets.animation.js @@ -995,6 +995,9 @@ registry.anchorSlide = publicWidget.Widget.extend({ * @private */ _onAnimateClick: function (ev) { + if (this.$target[0].pathname !== window.location.pathname) { + return; + } var hash = this.$target[0].hash; if (hash === '#top' || hash === '#bottom') { // If the anchor targets #top or #bottom, directly call the