root String (default: "/")

Applicable if pushState is used and the application is deployed to a path different than /. If the application start page is hosted on, the root option should be set to /myapp/.


    var router = new kendo.Router();
    var router = new kendo.Router({ pushState: true, root: "/myapp/" });

    $(function() {
      router.route("bar", function() {
/* The result can be observed in the DevTools(F12) console of the browser. */
          console.log("navigated to bar");

In this article