From 4c7e454d8688225cbead47578a5e0d656439223e Mon Sep 17 00:00:00 2001 From: Umputun Date: Tue, 5 Nov 2019 12:45:06 -0600 Subject: [PATCH] fix login url with wrong ? #463 --- frontend/app/common/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/common/api.ts b/frontend/app/common/api.ts index d89c053d..5b4e32d3 100644 --- a/frontend/app/common/api.ts +++ b/frontend/app/common/api.ts @@ -6,7 +6,7 @@ import fetcher from './fetcher'; /* common */ const __loginAnonymously = (username: string): Promise => { - const url = `/auth/anonymous/login?user=${encodeURIComponent(username)}&aud=${siteId}?from=${encodeURIComponent( + const url = `/auth/anonymous/login?user=${encodeURIComponent(username)}&aud=${siteId}&from=${encodeURIComponent( location.origin + location.pathname + '?selfClose' )}`; return fetcher.get({ url, withCredentials: true, overriddenApiBase: '' });