diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index b432358c4a..a4ab47968e 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -14,6 +14,7 @@ Yii Framework 2 Change Log - Bug #10974: `yii.js` - fixed error in ajaxPrefilter event handler, caused by blocked frame (maximal) - Bug #11038: Fixed handling of intervals of 0 seconds in `yii\i18n\Formatter::asDuration()` (VirtualRJ) - Bug #11052: Fixed `HtmlPurifier` configuration sequence (samdark) +- Bug #11066: `yii.js` - fixed `getQueryParams()` function to handle URLs with anchors correctly (DrDeath72) - Bug #11093: Fixed `yii\db\QueryBuilder::buildAndCondition()` to add query params passed directly by `yii\db\Expression` (CedricYii, silverfire) - Bug #11125: Fixed `JSON_ERROR_SYNTAX` for `json_decode(null)` in PHP 7 (fps01) - Bug: SQlite querybuilder did not create primary key with bigint for `TYPE_BIGPK` (cebe) diff --git a/framework/assets/yii.js b/framework/assets/yii.js index 0859b0ecf4..e25bd9ee75 100644 --- a/framework/assets/yii.js +++ b/framework/assets/yii.js @@ -277,7 +277,7 @@ yii = (function ($) { return {}; } - var pairs = url.substring(pos + 1).split('&'), + var pairs = url.substring(pos + 1).split('#')[0].split('&'), params = {}, pair, i;