diff --git a/nav.html b/nav.html
index da79bc0..8489201 100644
--- a/nav.html
+++ b/nav.html
@@ -14,11 +14,11 @@
diff --git a/pointsCenter.build.js b/pointsCenter.build.js
index 64a9759..90d5eae 100755
--- a/pointsCenter.build.js
+++ b/pointsCenter.build.js
@@ -56,10 +56,10 @@ require([
'typeahead'
], function($, spc, NProgress) {
'use strict';
- var page = window.location.pathname.split('/');
+ var page = (/(\w+)(\.php|\/)$/).exec(window.location.pathname);
if (page) {
- page = page[2];
+ page = page[1];
} else {
page = 'breakdown';
}
diff --git a/spc-table.php b/spc-table.php
index afab802..0813788 100644
--- a/spc-table.php
+++ b/spc-table.php
@@ -1,5 +1,4 @@