diff --git a/routers/routes/routes.go b/routers/routes/routes.go index c108eb3ff2e..cc36829ef55 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -564,7 +564,7 @@ func RegisterRoutes(m *macaron.Macaron) { }, reqRepoWriter, context.RepoRef(), context.CheckAnyUnit(models.UnitTypeIssues, models.UnitTypePullRequests)) m.Combo("/compare/*", repo.MustAllowPulls, repo.SetEditorconfigIfExists). - Get(repo.CompareAndPullRequest). + Get(repo.SetDiffViewStyle, repo.CompareAndPullRequest). Post(bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost) m.Group("", func() {