From 48badd59e9401df50f36dbd19a4a8167265d618d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rodrigo=20Villablanca=20V=C3=A1squez?=
 <villa061004@gmail.com>
Date: Sun, 28 Oct 2018 03:55:01 -0300
Subject: [PATCH] Fix to 3819 - Filtering issues by tags on main screen issues
 (#3824)

* Fix to 3819

* Changes suggested

* Empty line removed

* Fix error: non-name opts.Labels on left side of :=
---
 routers/user/home.go                 | 2 ++
 templates/user/dashboard/issues.tmpl | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/routers/user/home.go b/routers/user/home.go
index a0e292289..49c657955 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -255,6 +255,8 @@ func Issues(ctx *context.Context) {
 
 	opts.Page = page
 	opts.PageSize = setting.UI.IssuePagingNum
+	opts.Labels = ctx.Query("labels")
+
 	issues, err := models.Issues(opts)
 	if err != nil {
 		ctx.ServerError("Issues", err)
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl
index d0b6511b8..fe27a4439 100644
--- a/templates/user/dashboard/issues.tmpl
+++ b/templates/user/dashboard/issues.tmpl
@@ -71,7 +71,7 @@
 								especially on mobile views. */}}
 								<span style="line-height: 2.5">
 									{{range .}}
-										<a class="ui label" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description}}">{{.Name}}</a>
+										<a class="ui label" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}&repo={{$.RepoID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description}}">{{.Name}}</a>
 									{{end}}
 								</span>
 							{{end}}