seed-rs / seed-rs.org

Seed's official website
https://seed-rs.org/
Other
14 stars 40 forks source link

FAQ #71

Open MartinKavik opened 4 years ago

MartinKavik commented 4 years ago

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

TatriX commented 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:

TatriX commented 4 years ago

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().