Skip to content

Commit 66c623a

Browse files
修复分类侧栏过滤属性url,在某些nginx apache环境下的url生成的bug问题
1 parent 54a9c85 commit 66c623a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

services/Customer.php

-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ protected function actionLoginSuccessRedirect($urlKey = '')
381381
Yii::$service->session->remove($this::USER_LOGIN_SUCCESS_REDIRECT_URL_KEY);
382382
//echo Yii::$service->session->get($this::USER_LOGIN_SUCCESS_REDIRECT_URL_KEY);
383383
//exit;
384-
$url = urldecode($url);
385384
return Yii::$service->url->redirect($url);
386385
} else if($urlKey) {
387386
return Yii::$service->url->redirectByUrlKey($urlKey);

services/Url.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ protected function actionRemoveRewriteUrlKey($url_key)
115115
public function getCurrentUrl()
116116
{
117117
if (!$this->_currentUrl) {
118-
$pageURL = '//';
119-
$pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
118+
$pageURL = $this->getBaseUrl() . $_SERVER['REQUEST_URI'];
120119
$this->_currentUrl = $pageURL;
121120
}
122121

0 commit comments

Comments
 (0)