Does stdweb offer a way to go to another url

I'm building a web app using Rust/WebGL/stdweb.

On a certain event, I need to send the user to another URL. This is equiv to clicking on a <a href='...'> ...</a> or setting window.location in JS. I'm looking at https://docs.rs/stdweb/0.4.20/stdweb/web/struct.Location.html -- is there a way to do this via standard stdweb?

No, there isn't, apart from js! escape hatch.

The issue is tracked at https://github.com/koute/stdweb/issues/367.

1 Like