Hi! the link method have strange comportment, when I set a link to an element every things rules fine but when I add a event to this element then link doesn’t work for a local link, but it’s good for an external link. Do I use it bad ?
Hey
“add a event to this element” - what is the event that you add?
Hi Mikhail, it was the onClick event but I don’t know for others events.
Hi bokdani,
Thanks for letting us know that the behaviour feels odd. We’ll have another look at it.
Anyway, in order to solve your issue, here’s what you can do:
I assume you set both an onClick event and a link because you want to do react upon click, do something and then navigate to another page.
So, simply remove the link, and at the end of your onClick function, use wixLocation.to() for navigation.
Liran.
thanks Liran, I had choose another way but next time I will use your solution.