mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 11:03:05 +00:00
disregard embed url params when indexing and checking indexed request urls
This commit is contained in:
@@ -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&');
|
||||
|
Reference in New Issue
Block a user