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 http://foo.com/myapp/, the root option should be set to /myapp/.

Example

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

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

      router.start();
    });
</script>
In this article