Comparing
#3 with
#4
Content
[...]
```php
public function beforeAction($action)
{
$url = normalizedUrl = CHtml::normalizeUrl(array_merge(
array(
"/"
. .$this->route
), $_GET
));
if
( (Yii::app()->request->url !=
CHtml::$normalize
dUrl
( $url ) && strpos($normalizedUrl, Yii::app()->errorHandler->errorAction) === false) {
$this->redirect(
$u$normalizedUrl, true, 301
);
}[...]
public function beforeAction($action)
{
$url = normalizedUrl = CHtml::normalizeUrl(array_merge(
array(
"/"
. .$this->route
), $_GET
));
if
( (Yii::app()->request->url !=
CHtml::$normalize
dUrl
( $url ) && strpos($normalizedUrl, Yii::app()->errorHandler->errorAction) === false) {
$this->redirect(
$u$normalizedUrl, true, 301
);
}
return parent::beforeAction($action);
}
}[...]