Is there any way to detect a change in the url hash fragment ?
Thanks,
J.D.
Found a solution:
I’ve added a listener to detect hash changes (I put it in the analytics & tracking custom tool, on the dashboard, available for paid accounts only). Then, in order to interact with my page elements, I’ve made it post the hash change to an html component on my page, and using Wix API, I had the html component post it to the Wix code on the page.
Quite complicated…
Wouldn’t it be simpler to use query parameters and then if (wixLocation.query.param) ?
@skmedia , changing query parameters makes the page reload, so it only fits to specific situations.
In other cases, you’d like to change the url parameters without reloading the page (page reloading is much less nice from user experience perspective).