only need to trim `!`

This commit is contained in:
Kyle Spearrin 2017-11-15 17:32:10 -05:00
parent 1cdf7924fc
commit 7e383c68f6
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@
if (paramIndex > -1) {
pagePath = pagePath.substring(0, paramIndex);
}
if (pagePath.indexOf('/!/') === 0) {
pagePath = pagePath.substring(2);
if (pagePath.indexOf('!/') === 0) {
pagePath = pagePath.substring(1);
}
return encodeURIComponent(pagePath);
}