diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/file-workload/file-workload.component.html b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/file-workload/file-workload.component.html
index 7cbfa2962..7111f4d66 100644
--- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/file-workload/file-workload.component.html
+++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/file-workload/file-workload.component.html
@@ -94,7 +94,6 @@
- {{activeViewerPage}}
this.pageChanged.emit(pageNumber));
- }
+ this._ngZone.run(() => this.pageChanged.emit(pageNumber));
this._handleCustomActions();
});
@@ -648,8 +639,9 @@ export class PdfViewerComponent implements OnInit, OnChanges {
private _setReadyAndInitialState(): void {
this._ngZone.run(() => {
this.utils.ready = true;
- this._firstPageChange = true;
this.viewerReady.emit(this.instance);
+ const routePageNumber = this._activatedRoute.snapshot.queryParams.page;
+ this.pageChanged.emit(routePageNumber || 1);
this._setInitialDisplayMode();
this._updateTooltipsVisibility();
});
diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts
index d0d104b6f..a2ee6f0f6 100644
--- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts
+++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts
@@ -74,7 +74,7 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
selectedAnnotations: AnnotationWrapper[] = [];
hideSkipped = false;
displayPdfViewer = false;
- activeViewerPage : number = null;
+ activeViewerPage: number = null;
@ViewChild(PdfViewerComponent) readonly viewerComponent: PdfViewerComponent;
readonly dossierId: string;
readonly canPerformAnnotationActions$: Observable;
@@ -151,9 +151,13 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
private _setActiveViewerPage() {
const currentPage = this._instance?.Core.documentViewer?.getCurrentPage();
if (!currentPage) {
- this.activeViewerPage = 0;
+ this.activeViewerPage = 1;
} else {
- this.activeViewerPage = this.viewModeService.isCompare ? currentPage % 2 === 0 ? currentPage / 2 : (currentPage + 1) / 2 : currentPage;
+ this.activeViewerPage = this.viewModeService.isCompare
+ ? currentPage % 2 === 0
+ ? currentPage / 2
+ : (currentPage + 1) / 2
+ : currentPage;
}
}
@@ -393,7 +397,6 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
};
this._router.navigate([], extras).then();
-
this._setActiveViewerPage();
this._changeDetectorRef.markForCheck();
}
diff --git a/apps/red-ui/src/assets/config/config.json b/apps/red-ui/src/assets/config/config.json
index 4c6dd7e9a..6befaaf58 100644
--- a/apps/red-ui/src/assets/config/config.json
+++ b/apps/red-ui/src/assets/config/config.json
@@ -1,7 +1,7 @@
{
"ADMIN_CONTACT_NAME": null,
"ADMIN_CONTACT_URL": null,
- "API_URL": "https://aks-staging.iqser.cloud/redaction-gateway-v1",
+ "API_URL": "https://dev-03.iqser.cloud/redaction-gateway-v1",
"APP_NAME": "RedactManager",
"AUTO_READ_TIME": 1.5,
"BACKEND_APP_VERSION": "4.4.40",
@@ -17,7 +17,7 @@
"MAX_RETRIES_ON_SERVER_ERROR": 3,
"OAUTH_CLIENT_ID": "redaction",
"OAUTH_IDP_HINT": null,
- "OAUTH_URL": "https://aks-staging.iqser.cloud/auth/realms/redaction",
+ "OAUTH_URL": "https://dev-03.iqser.cloud/auth/realms/redaction",
"RECENT_PERIOD_IN_HOURS": 24,
"SELECTION_MODE": "structural"
}