Skip to content

Commit 6110ddc

Browse files
authored
Fix login redirection links (#17473)
1 parent c7d8181 commit 6110ddc

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
@@ -196,7 +196,7 @@
196196
{{svg "octicon-person"}} {{.i18n.Tr "register"}}
197197
</a>
198198
{{end}}
199-
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{.CurrentURL}}">
199+
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login{{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}">
200200
{{svg "octicon-sign-in"}} {{.i18n.Tr "sign_in"}}
201201
</a>
202202
</div><!-- end anonymous right menu -->

0 commit comments

Comments
 (0)