diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 323866b04f1..f0c1f1ce5af 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -19,7 +19,7 @@ if( newPath === undefined ){ newPath = location.hash; } - return path.stripHash( newPath ).replace(/[^\/]*\.[^\/*]+$/, ''); + return path.stripHash( newPath ).replace(/[^\/]*\.?[^\/*]+$/, ''); }, //return the substring of a filepath before the sub-page key, for making a server request