Open MartinKavik opened 4 years ago
I can't see tag![]
on my page! or I can't see changes I've made!
Typically this can happen for one or several reasons:
target/*.wasm
file or cargo clean
then check that page gives you corresponding error, and finally recompile.How to get current url/location?
Either use url
param of your init
function which you pass to App::start or just call Url::current().
One thing that could help is to compile a FAQ that works like this website: http://microjs.com/ i.e. there is a list of the things that people commonly ask how to do them, and then, as an answer, the site shows one small paragraph that explains, and a link to the corresponding example. So, there would be "I need to..." and a choice box. One choice: "redirect to another URL". Answer: "The Seed way to work with the browser URL is to use the URL subscription API (link). All you have to do to redirect to another page is to notify the UrlRequested subscription like this: orders.notify(subs::UrlRequested::new(url))".
@sabine - https://github.com/seed-rs/seed/issues/433#issuecomment-670933347