Michal Klimczak
04/04/2022, 8:38 PMlink("/test", url = "/test", dataNavigo = true)
work the same as routing.navigate("/test")
? Because for me, the former reloads page, while the latter works as expected (uses history api).Michal Klimczak
04/04/2022, 8:38 PMlink("/test", url = "/test") {
setAttribute("data-navigo", "true")
}
Robert Jaros
04/05/2022, 4:51 AMrouting.updatePageLinks()
after every change on the page. It will update links and make them work with history api. See more in the navigo docs: https://github.com/krasimir/navigo/blob/master/DOCUMENTATION.md#augment-your-a-tagsRobert Jaros
04/05/2022, 4:58 AMwindow.setTimeout({
routing.updatePageLinks()
}, 0)
Robert Jaros
04/05/2022, 4:58 AMLink.useDataNavigoForLinks = true
when initializing your app, and you don't need to add dataNavigo
manually to all your links.Michal Klimczak
04/05/2022, 5:02 AM