mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Include redirect parameter in link
This commit is contained in:
parent
e38b31bf97
commit
0efeff0098
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@
|
|||
</div>
|
||||
<ul class="md:flex-1 md:justify-center md:flex">
|
||||
<li v-for="provider in oidcProviders" :key="provider.name">
|
||||
<a class="btn w-auto" :href="provider.authUrl">Log in with {{ provider.name }}</a>
|
||||
<a class="btn w-auto" :href="provider.authUri">Log in with {{ provider.name }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
|
@ -69,7 +69,7 @@ export default {
|
|||
this.oidcProviders = config?.oidcProviders.map(name => {
|
||||
return {
|
||||
name,
|
||||
authUrl: `${this.authApiUrl()}/oidc/${name}/login`,
|
||||
authUri: `${this.authApiUrl()}/oidc/${name}/login?redirect=${window.location.origin}/login`,
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue