disregard embed url params when indexing and checking indexed request urls

This commit is contained in:
Art Lowel
2020-03-11 14:53:55 +01:00
parent 8fd46d9c88
commit a970aeaab8
6 changed files with 92 additions and 21 deletions

View File

@@ -41,8 +41,8 @@ export class URLCombiner {
// remove consecutive slashes
url = url.replace(/([^:\s])\/+/g, '$1/');
// remove trailing slash before parameters or hash
url = url.replace(/\/(\?|&|#[^!])/g, '$1');
// remove trailing slash
url = url.replace(/\/($|\?|&|#[^!])/g, '$1');
// replace ? in parameters with &
url = url.replace(/(\?.+)\?/g, '$1&');