Hello Arthur,
Two ways to acheive this.
-
Either add a cookie or storage Item ,on button click, in the browser and do a normal wixLocation.to() when you go to that page read the cookie and if it matches, then scroll to the anchor.
-
Add this code to the site code (A bit worse of a solution then the first)
Hope this helps,
Majd