Webix Jet UrlRouter

edited April 2018 in Technical questions

I'm having issues with getting the UrlRouter to refresh correctly. I'm testing the Webix Jet starter app (https://github.com/webix-hub/jet-start).

//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.

Tagged:

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!