diff --git a/src/app/admin/admin.service.ts b/src/app/admin/admin.service.ts index 245cd5593..a1d33c3de 100644 --- a/src/app/admin/admin.service.ts +++ b/src/app/admin/admin.service.ts @@ -17,8 +17,10 @@ export class AdminService { } getUsers(nextPage?: string): Observable { - const url = (nextPage && nextPage.replace('http', 'https')) || - `${environment.serverUrl}/admin/users`; + const url = ( + nextPage && (environment.serverUrl.search(/^https:/) >= 0 && nextPage.replace(/^http:/, 'https:')) + || nextPage + ) || `${environment.serverUrl}/admin/users`; return this.http.get(url); } diff --git a/src/app/common/request.interceptor.ts b/src/app/common/request.interceptor.ts index 7faa21d9e..346f26c8d 100644 --- a/src/app/common/request.interceptor.ts +++ b/src/app/common/request.interceptor.ts @@ -14,8 +14,6 @@ import { ErrorResponseDialogComponent } from "common/dialog/error-response-dialo import { PushNotificationsService } from 'common/components/push-notifications/push-notifications.service'; import { pushNotificationTypesEnum } from 'models/enum/push-notification.enum'; import { environment } from "environments/environment.ts"; -import { AppState } from "models/app-state.model"; -import { Store } from "@ngrx/store"; import { HandleSubscription } from "common/handle-subscription"; import { ImpersonationService } from "../impersonation/impersonation.service";