diff --git a/wwwroot/game_list.js b/wwwroot/game_list.js index 70d81f5..a6e77e1 100644 --- a/wwwroot/game_list.js +++ b/wwwroot/game_list.js @@ -9,7 +9,8 @@ window.scenseGameList = (function () { } function base() { - return window.location.pathname.replace(/\/game\/.*$/, ''); + var p = window.location.pathname.replace(/\/game\/.*$/, ''); + return p.replace(/\/+$/, ''); } function statusText(s) {