From 8893355afbb95cf42fc60956058b19ff6130d67c Mon Sep 17 00:00:00 2001 From: f0x Date: Wed, 2 Nov 2022 20:05:21 +0000 Subject: [PATCH] fix oauth url getting too long --- web/source/settings/lib/api/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/source/settings/lib/api/index.js b/web/source/settings/lib/api/index.js index e699011bd..20377824c 100644 --- a/web/source/settings/lib/api/index.js +++ b/web/source/settings/lib/api/index.js @@ -129,7 +129,8 @@ function getChanges(state, keys) { } function getCurrentUrl() { - return `${window.location.origin}${window.location.pathname}`; + let [pre, _past] = window.location.pathname.split("/settings"); + return `${window.location.origin}${pre}/settings`; } function fetchInstanceWithoutStore(domain) {