修复未登录时点击需要登录验证的页面,跳转到登录页,登录成功后不能跳转到登录前点击的页面的bug
Code Review By Rock Zhang
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -34,7 +34,7 @@ class HomeController extends AbstractAction | @@ -34,7 +34,7 @@ class HomeController extends AbstractAction | ||
34 | { | 34 | { |
35 | $uid = $this->getUid($useSession); | 35 | $uid = $this->getUid($useSession); |
36 | if (!$uid) { | 36 | if (!$uid) { |
37 | - $this->go(Helpers::url('/signin.html', array('refer' => $this->server('HTTP_REFERER', SITE_MAIN)))); | 37 | + $this->go(Helpers::url('/signin.html', array('refer' => Helpers::url($this->server('REQUEST_URI', '/home'))))); |
38 | } | 38 | } |
39 | } | 39 | } |
40 | 40 |
-
Please register or login to post a comment