Skip to content

Commit ab9cbea

Browse files
[CST-18964] Fixes empty trackerId for bitstream download feature
1 parent e4e5255 commit ab9cbea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/statistics/matomo.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class MatomoService {
145145
*/
146146
private appendTrackerId(url: string, visitorId: string) {
147147
const updatedURL = new URL(url);
148-
if (visitorId != null) {
148+
if (isNotEmpty(visitorId)) {
149149
updatedURL.searchParams.append('trackerId', visitorId);
150150
}
151151
return updatedURL.toString();

0 commit comments

Comments
 (0)