I've got an onclick link in an svg that would link to another part of the website/program. I used window.location.replace(...) in the onclick
<example onClick(() => window.location.replace(...)) />
and that works fine for the web browser - but it causes the Tauri application to just white screen.
I did a little searching and found something that said to use window.eval(window.location.replace(...))
but that didn't work either unfortunately.
I was hoping to use a <Link>
as a replacement as that seems better from what I've read, but I couldn't get it working in the onClick.
Is there a way to use window.location functions in tauri? And if not is there a way I could use a <Link>
in an onClick?
Thanks!