Skip to content

Commit 54243ee

Browse files
qwerty287wxiaoguanglunnyzeripath
authored
Fix login redirection links (#17451)
Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent 141d1a2 commit 54243ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/head_navbar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
{{svg "octicon-person"}} {{.i18n.Tr "register"}}
193193
</a>
194194
{{end}}
195-
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{.CurrentURL}}">
195+
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login{{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}">
196196
{{svg "octicon-sign-in"}} {{.i18n.Tr "sign_in"}}
197197
</a>
198198
</div><!-- end anonymous right menu -->

0 commit comments

Comments
 (0)