implemented returning to page the client was at before starting oidc login

This commit is contained in:
2025-09-01 16:09:09 +02:00
parent 307ce63635
commit 0792baff49

View File

@@ -39,7 +39,7 @@
async function redirectTo(e,service){
const btn = e.target;
btn.disabled = true;
const url = api(`user/oidc/redirect/${service}`);
const url = api(`user/oidc/redirect/${service}?returnTo=${window.location.pathname}`);
const resp = await fetch(url,{credentials:'include'});
if (resp.ok){
const json = await resp.json();