diff --git a/src/components/gitlab/Login.svelte b/src/components/gitlab/Login.svelte index de5c4a1..1961fdb 100644 --- a/src/components/gitlab/Login.svelte +++ b/src/components/gitlab/Login.svelte @@ -33,7 +33,7 @@ function login() { const params = { response_type: 'code', client_id: $CLIENT_ID, - redirect_uri: window.location.origin+window.location.pathname, + redirect_uri: window.location.href, state: '123456', scope: 'api', code_challenge: codeChallenge, diff --git a/src/stores/gitlab-api.js b/src/stores/gitlab-api.js index fc09d5a..8b2b1f3 100644 --- a/src/stores/gitlab-api.js +++ b/src/stores/gitlab-api.js @@ -18,7 +18,7 @@ export async function init() { grant_type: 'authorization_code', client_id: get(CLIENT_ID), code: code, - redirect_uri: window.location.origin + window.location.pathname, + redirect_uri: window.location.href, code_verifier: code_verifier, } const response = await fetch(`${base_url}/token`, {