1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-17 20:04:06 +01:00

trim /! from start of pages

This commit is contained in:
Kyle Spearrin 2017-11-15 17:25:03 -05:00
parent 77d2218ff9
commit 1cdf7924fc

View File

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