routeMissing

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

Example

<script>
/* The result can be observed in the DevTools(F12) console of the browser. */
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