File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ func Contexter() macaron.Handler {
242
242
}
243
243
ctx .Data ["Language" ] = ctx .Locale .Language ()
244
244
c .Data ["Link" ] = ctx .Link
245
+ ctx .Data ["CurrentURL" ] = setting .AppSubURL + c .Req .URL .RequestURI ()
245
246
ctx .Data ["PageStartTime" ] = time .Now ()
246
247
// Quick responses appropriate go-get meta with status 200
247
248
// regardless of if user have access to the repository,
Original file line number Diff line number Diff line change 154
154
{{svg "octicon-person" 16}} {{.i18n.Tr "register"}}
155
155
</a>
156
156
{{end}}
157
- <a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{.Link }}">
157
+ <a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{.CurrentURL }}">
158
158
{{svg "octicon-sign-in" 16}} {{.i18n.Tr "sign_in"}}
159
159
</a>
160
160
</div><!-- end anonymous right menu -->
You can’t perform that action at this time.
0 commit comments