diff --git a/Common-UI b/Common-UI index 09f4202..f453693 160000 --- a/Common-UI +++ b/Common-UI @@ -1 +1 @@ -Subproject commit 09f42028ac5f9fc8ec307ade87da13fe4ef53818 +Subproject commit f45369358ebf0c9c57deee0a39482022a1007849 diff --git a/src/app/app-modules/nurse-doctor/doctor-worklist/doctor-worklist.component.ts b/src/app/app-modules/nurse-doctor/doctor-worklist/doctor-worklist.component.ts index d9df39d..73bb8c9 100644 --- a/src/app/app-modules/nurse-doctor/doctor-worklist/doctor-worklist.component.ts +++ b/src/app/app-modules/nurse-doctor/doctor-worklist/doctor-worklist.component.ts @@ -117,7 +117,13 @@ export class DoctorWorklistComponent implements OnInit, DoCheck, OnDestroy { } redirectToCHOReport() { - window.location.href = `${environment.dhisURL}${JSON.parse(this.sessionstorage.getItem('loginDataResponse'))?.dhistoken}`; + const token = JSON.parse( + this.sessionstorage.getItem('loginDataResponse'), + )?.dhistoken; + + const url = `${environment.dhisURL}${token}`; + + window.open(url, '_blank', 'noopener,noreferrer'); } setDisplayedColumns() {