Skip to content

Commit

Permalink
Merge pull request #437 from caiyixiang/Reference_constant
Browse files Browse the repository at this point in the history
Reference constant
  • Loading branch information
aledbf authored Mar 14, 2017
2 parents 03c43b6 + 3b152e6 commit c67e106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/nginx/pkg/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func buildLocation(input interface{}) string {

path := location.Path
if len(location.Redirect.Target) > 0 && location.Redirect.Target != path {
if path == "/" {
if path == slash {
return fmt.Sprintf("~* %s", path)
}
return fmt.Sprintf("~* ^%s", path)
Expand Down

0 comments on commit c67e106

Please sign in to comment.