Skip to content

Commit 3ee0c19

Browse files
committed
Redirect to the Gist after sign-in by clicking fork button
1 parent cd85799 commit 3ee0c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/twirl/gitbucket/gist/header.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@if(gist.originUserName.isEmpty){
2020
<div class="input-prepend" style="margin-bottom: 0px;">
2121
@if(loginAccount.isEmpty){
22-
<a title="You must be signed in to fork a repository" href="@path/signin" class="btn btn-small">Fork</a>
22+
<a title="You must be signed in to fork a repository" href="@path/signin?redirect=@urlEncode(s"${path}/gist/${gist.userName}/${gist.repositoryName}")" class="btn btn-small">Fork</a>
2323
} else {
2424
<a id="fork-link" href="javascript:void(0);" class="btn btn-small">Fork</a>
2525
}

0 commit comments

Comments
 (0)