strip tracking parameters when parsing urls

This commit is contained in:
ansuz
2017-11-20 12:09:17 +01:00
parent af1ea4fd96
commit b96ea47f1f
2 changed files with 12 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ Version 1
if (!href) { return ret; }
if (href.slice(-1) !== '/') { href += '/'; }
href = href.replace(/\/\?[^#]+#/, '/#');
var idx;