Authored by hf

fixes bug to brands search page link error

@@ -211,6 +211,14 @@ server @@ -211,6 +211,14 @@ server
211 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 211 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
212 proxy_set_header Accept-Encoding "gzip"; 212 proxy_set_header Accept-Encoding "gzip";
213 } 213 }
  214 + location ^~ /index/search {
  215 + proxy_redirect off;
  216 + proxy_pass http://yohobuy;
  217 + proxy_set_header Host $host;
  218 + proxy_set_header X-Real-IP $remote_addr;
  219 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  220 + proxy_set_header Accept-Encoding "gzip";
  221 + }
214 222
215 # 其它访问都跳到老版 223 # 其它访问都跳到老版
216 location / { 224 location / {
@@ -63,17 +63,17 @@ routes.cate.route.action = Index @@ -63,17 +63,17 @@ routes.cate.route.action = Index
63 63
64 ; 品牌一览 64 ; 品牌一览
65 routes.brands.type = "rewrite" 65 routes.brands.type = "rewrite"
66 -routes.brands.match = "/brands" 66 +routes.brands.match = "/brands$"
67 routes.brands.route.module = Category 67 routes.brands.route.module = Category
68 routes.brands.route.controller = Brand 68 routes.brands.route.controller = Brand
69 routes.brands.route.action = Index 69 routes.brands.route.action = Index
70 70
71 ; 品牌一览搜索页 71 ; 品牌一览搜索页
72 -routes.brands.type = "rewrite"  
73 -routes.brands.match = "/brands/search"  
74 -routes.brands.route.module = Category  
75 -routes.brands.route.controller = Brand  
76 -routes.brands.route.action = Search 72 +routes.brandsearch.type = "rewrite"
  73 +routes.brandsearch.match = "/brands/search"
  74 +routes.brandsearch.route.module = Category
  75 +routes.brandsearch.route.controller = Brand
  76 +routes.brandsearch.route.action = Search
77 77
78 ; 新品到着(NEW) 78 ; 新品到着(NEW)
79 routes.productnew.type = "rewrite" 79 routes.productnew.type = "rewrite"