diff --git a/views/src/authorize/authorize.js b/views/src/authorize/authorize.js index 8c6ccb2..248682c 100644 --- a/views/src/authorize/authorize.js +++ b/views/src/authorize/authorize.js @@ -7,9 +7,12 @@ function submit() { document.getElementById("cancel").onclick = () => { let u = new URL(window.location); let uri = u.searchParams.get("redirect_uri"); + if (uri === "$local") { + uri = "/code"; + } window.location.href = uri + "?error=access_denied&state=" + u.searchParams.get("state"); } document.getElementById("allow").onclick = () => { submit() -} +} \ No newline at end of file