Edit this page

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() {
          console.log("navigated to bar");
      });

      router.start();
    });
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy