Bug in url-matching when ended with "/"
bigomega opened this issue · comments
Bharath Raja commented
From the given example in README
var routes = {
'/author': author,
'/books': [books, function() {
console.log("An inline route handler.");
}],
'/books/view/:bookId': viewBook,
// I ADDED THIS
'*': function(){console.log('default');}
};
when i give the url #/books/view/
or #/books/
none of the functions are called.
Yes really... 😨
Morlay commented
make this rule works, have to set like `'/author/?' :-(
Bharath Raja commented
Well that makes sense... sad though :(
Dmitry Zavodnikov commented
+1