Closed tommyy closed 10 years ago
Is it possible to check if no routes are matched? If no routes are matched, i'm thinking of redirecting the user to a 404 page.
@tommyy:
router.on('hashchange', function(){ if(this.action && !this.matches().length){ // 404 } });
Download the new source because a bug was recently fixed. :]
Is it possible to check if no routes are matched? If no routes are matched, i'm thinking of redirecting the user to a 404 page.