Kendo Router Issue

Demonstrates infinite recursion issue

by gxclarke

HTML

<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.1.319/styles/kendo.default.min.css">
<script src="http://cdn.kendostatic.com/2013.1.319/js/kendo.all.min.js"></script>

JavaScript

var router = new kendo.Router({
    change: function(e) {
        console.log(e.url);
    }
});

router.route("/a(/:b)", function(b) {
    if (location.hash.split("/") == 2)
        router.navigate("/a/somewhere");
});

router.start();

router.navigate("/a");