mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
[CST-18964] Fixes empty trackerId for bitstream download feature
This commit is contained in:
@@ -145,7 +145,7 @@ export class MatomoService {
|
||||
*/
|
||||
private appendTrackerId(url: string, visitorId: string) {
|
||||
const updatedURL = new URL(url);
|
||||
if (visitorId != null) {
|
||||
if (isNotEmpty(visitorId)) {
|
||||
updatedURL.searchParams.append('trackerId', visitorId);
|
||||
}
|
||||
return updatedURL.toString();
|
||||
|
Reference in New Issue
Block a user