mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
110889: Fixed trackStatistics still sending backend requests to track search event when trackStatistics is false
This commit is contained in:
@@ -485,7 +485,8 @@ export class SearchComponent implements OnDestroy, OnInit {
|
||||
* This method should only be called once and is essentially what SearchTrackingComponent used to do (now removed)
|
||||
* @private
|
||||
*/
|
||||
private subscribeToRoutingEvents() {
|
||||
private subscribeToRoutingEvents(): void {
|
||||
if (this.trackStatistics) {
|
||||
this.subs.push(
|
||||
this.router.events.pipe(
|
||||
filter((event) => event instanceof NavigationStart),
|
||||
@@ -498,6 +499,7 @@ export class SearchComponent implements OnDestroy, OnInit {
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the UUID from a DSO url
|
||||
|
Reference in New Issue
Block a user