routeMissing

Triggered when the URL does not match any of the provided routes.

Example

<script>
var router = new kendo.Router({ routeMissing: function(e) { console.log(e.url, e.params) } });

$(function() {
    router.start();
    router.navigate("/foo?bar=baz");
});
</script>

Event Data

e.url String

The fragment part of the URL

e.params Object

The parsed query string parameters of the URL

Calling the preventDefault method of the event object will stop the change and restore the previous URL.

In this article
Not finding the help you need?