Browse Source

Fixes #1169: anchor doesn't work when enablePrettyUrl is false.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
a408b75318
  1. 2
      framework/yii/web/UrlManager.php

2
framework/yii/web/UrlManager.php

@ -251,7 +251,7 @@ class UrlManager extends Component
if (!empty($params)) { if (!empty($params)) {
$url .= '&' . http_build_query($params); $url .= '&' . http_build_query($params);
} }
return $url; return $url . $anchor;
} }
} }

Loading…
Cancel
Save