Skip to content

Commit

Permalink
issue: Fix 'to list' button's wrong link at some case
Browse files Browse the repository at this point in the history
When a user see closed issue, 'to list' button's link isn't proper.
This commit fix that problem.

See: Yona Github issue #192
  • Loading branch information
doortts committed Mar 25, 2017
1 parent 1b873ae commit 8086464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/issue/view.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

@urlToIssues = @{
requestHeader.headers.get("Referer") match {
case Some(u) => urlToList(u, routes.IssueApp.issues(project.owner, project.name, "open").toString())
case Some(u) => urlToList(u, routes.IssueApp.issues(project.owner, project.name, issue.state.state()).toString())
case _ => routes.IssueApp.issues(project.owner, project.name, "open").toString()
}
}
Expand Down

0 comments on commit 8086464

Please sign in to comment.