Before this commit, clicking on a different variant of a product from the WebsitePreview client action introduced in [1] would not update the browser's url. This commit adds an event listener to update the browser url on hash changes, as load events are currently handled. The product variant buttons are directly changing the hash instead of replacing the state of the history. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-2687506 Part-of: odoo/odoo#95955