Webix jet Router : Is there a way to set a default route when it is an unmapped path?

Let’s say I have the following file list.

  • err
    • 404.js
  • details
    • form.js
    • some.js
      I want it to be moved to /err/404.js when entering "/details/form/blabla/blablaba, "( unmapped route path) in the Internet browser. I also don’t want to show the “cannot find modules” warning window.
      how do i solve this problem?

try to override JetApp’s private _loadError method and return imported 404.js
https://snippet.webix.com/bvqtvbk7

1 Like

@intregal.
Your replies are always quick and provide great code samples. thank you