From 29c8ad85897ed125de6c5955b6dcf9bcb33620ec Mon Sep 17 00:00:00 2001 From: George Kalampokis Date: Tue, 15 Sep 2020 13:16:18 +0300 Subject: [PATCH] Fixed authService.me sometimes using invalid url (possible relation to #289) --- dmp-frontend/src/app/core/services/auth/auth.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/core/services/auth/auth.service.ts b/dmp-frontend/src/app/core/services/auth/auth.service.ts index 6a1a91484..66a52f3bc 100644 --- a/dmp-frontend/src/app/core/services/auth/auth.service.ts +++ b/dmp-frontend/src/app/core/services/auth/auth.service.ts @@ -127,7 +127,8 @@ export class AuthService extends BaseService { } public me(): Observable { - const url = this.actionUrl + '/me'; + this.actionUrl = this.configurationService.server + 'auth/'; + const url = this.actionUrl + 'me'; const principal = this.current(); if (!principal) { this.clear();