Return anchor1 not works

Hi,
from Home Page (HP) of my site I call a Dynamic Page (DP) with the wixLocation.to () function. Impacted collections are not referenced
And it works perfectly.

On the my DP I inserted a button that points to a anchor1 present on the HP.
And it does not work.

Clicking on the this button, stays on the Dynamic Page and does not return to the anchor1 t hat I would like.
Can you tell me how can I do?

Thank you so much

Hi Claudio!

Please share a link to your site so one of us (WixCode Team) can inspect it and provide you with a solution.

Doron.

Thank you, I solved using the dynamic page without wixLocation.to () function.
In this case the anchor works

By