mirror of
https://github.com/go-gitea/gitea
synced 2025-01-09 09:24:25 +00:00
Always set redirect_to on header-provided sign-in (#3435)
This is an attempt to fix #3089 following the strategy introduced in d625e41c6c4d40fadbeaf99dd97e77aa0c9085ae, although that strategy by itself does not seem to be sufficient. What needs be done is honouring the redirect_url query parameter from the auth router.
This commit is contained in:
parent
d625e41c6c
commit
3380c946e1
@ -139,7 +139,7 @@
|
|||||||
<i class="octicon octicon-person"></i> {{.i18n.Tr "register"}}
|
<i class="octicon octicon-person"></i> {{.i18n.Tr "register"}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<a class="item{{if .PageIsSignIn}} active{{end}}" href="{{AppSubUrl}}/user/login">
|
<a class="item{{if .PageIsSignIn}} active{{end}}" href="{{AppSubUrl}}/user/login?redirect_to={{.Link}}">
|
||||||
<i class="octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}
|
<i class="octicon octicon-sign-in"></i> {{.i18n.Tr "sign_in"}}
|
||||||
</a>
|
</a>
|
||||||
</div><!-- end anonymous right menu -->
|
</div><!-- end anonymous right menu -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user