implemented returning to page the client was at before starting oidc login
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
async function redirectTo(e,service){
|
async function redirectTo(e,service){
|
||||||
const btn = e.target;
|
const btn = e.target;
|
||||||
btn.disabled = true;
|
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'});
|
const resp = await fetch(url,{credentials:'include'});
|
||||||
if (resp.ok){
|
if (resp.ok){
|
||||||
const json = await resp.json();
|
const json = await resp.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user