I’m having issues with getting the UrlRouter to refresh correctly. I’m testing the Webix Jet starter app (GitHub - webix-hub/jet-start: App used as a start point for the Webix Jet).
//webpack.config.js
devServer:{
historyApiFallback:{
index : "index.html"
}
},
//myapp.js
import {JetApp, UrlRouter} from "webix-jet";
...
webix.ready(() => {
var app = new JetApp({
id: APPNAME,
version: VERSION,
start: "/top/start",
routerPrefix: "[SOME_PATH]",
router: UrlRouter,
// views:{
// top: top,
// }
});
app.render();
app.attachEvent("app:error:resolve", function(name, error){
window.console.error(error);
});
});
//index.html
//at the bottom of <head>
<script type="text/javascript">
if(document.location.pathname == "/index.html")
document.location.href = "[SOME_PATH]";
</script>
I’ve tried various params for the routerPrefix, but haven’t had any luck getting this to work. Any help would be appreciated.