mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 16:38:22 +08:00
Fixes #1169: anchor doesn't work when enablePrettyUrl is false.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user