fix oauth url getting too long

This commit is contained in:
f0x 2022-11-02 20:05:21 +00:00
parent 789ff71a08
commit 8893355afb

View file

@ -129,7 +129,8 @@ function getChanges(state, keys) {
} }
function getCurrentUrl() { 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) { function fetchInstanceWithoutStore(domain) {