strip tracking parameters when parsing urls

This commit is contained in:
ansuz committed 2017-11-20 12:09:17 +01:00
1 parent af1ea4fd96
commit b96ea47f1f
2 files changed
+12

No files matched your search

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