Webix Jet UrlRouter

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.

Please check the attached demo, it is the same project with UrlRouter enabled

https://files.webix.com/30d/b497120715a7ee95cb328b7ea72f555b/jet-start-url-router.zip

// index.html
	<script type="text/javascript">
		if(document.location.pathname == "/index.html")
			 document.location.href = "myapp/";
	 </script>

// sources/myapp.js
 	var app = new JetApp({
 		id:			APPNAME,
 		version:	VERSION,
		start:		"/top/start",
		router: UrlRouter,
		routerPrefix: "/myapp"
 	});
 	app.render();
 

@maksim, I still can’t get this to work and the zip file you provided does not work.