chore (login): forward URL params in login

This commit is contained in:
MickaelK 2024-12-12 22:31:37 +11:00
parent e0de8261a6
commit 6eb3ed8b40

View file

@ -5,6 +5,7 @@ import ajax from "../../lib/ajax.js";
import { qs, qsa, safe } from "../../lib/dom.js";
import { animate, slideYIn, transition, opacityIn } from "../../lib/animate.js";
import assert from "../../lib/assert.js";
import { forwardURLParams } from "../../lib/path.js";
import { createForm } from "../../lib/form.js";
import { settings_get, settings_put } from "../../lib/settings.js";
import t from "../../locales/index.js";
@ -204,7 +205,7 @@ export default async function(render) {
const GET = getURLParams();
if (GET["next"]) redirectURL = GET["next"];
else if (responseJSON.result) redirectURL = toHref("/files" + responseJSON.result);
navigate(redirectURL);
navigate(forwardURLParams(redirectURL, ["nav"]));
}),
rxjs.catchError((err) => {
toggleLoader(false);