diff --git a/app-router.html b/app-router.html
index 8e5a566..3f8b16c 100644
--- a/app-router.html
+++ b/app-router.html
@@ -195,6 +195,11 @@
router.testRoute = function(routePath, urlPath) {
// This algorithm tries to fail or succeed as quickly as possible for the most common cases.
+ // Remove trailing / unless it's the root
+ if(!urlPath.length == 1) {
+ urlPath = urlPath.replace(/(\/$|\/\?)/, '');
+ }
+
// If the urlPath is an exact match or '*' then the route is a match
if (routePath === urlPath || routePath === '*') {
return true;
@@ -313,4 +318,4 @@
prototype: router
});
})(window, document);
-
\ No newline at end of file
+