Browse Source

Fixes #13694: yii\widgets\Pjax now sends X-Pjax-Url header with response to fix redirect

tags/2.0.12
Alexander Makarov 8 years ago
parent
commit
38488ca55b
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 2
      framework/CHANGELOG.md
  2. 1
      framework/widgets/Pjax.php

2
framework/CHANGELOG.md

@ -3,6 +3,8 @@ Yii Framework 2 Change Log
2.0.12 under development
--------------------------
- Bug #13694: `yii\widgets\Pjax` now sends `X-Pjax-Url` header with response to fix redirect (wleona3, Faryshta)
- Bug #14012: `yii\db\pgsql\Schema::findViewNames()` was skipping materialized views (insolita)
- Bug #13362: Fixed return value of `yii\caching\MemCache::setValues()` (masterklavi)
- Enh #13963: Added tests for yii\behaviors\TimestampBehavior (vladis84)

1
framework/widgets/Pjax.php

@ -171,6 +171,7 @@ class Pjax extends Widget
$response->setStatusCode(200);
$response->format = Response::FORMAT_HTML;
$response->content = $content;
$response->headers->setDefault('X-Pjax-Url', Yii::$app->request->url);
$response->send();
Yii::$app->end();

Loading…
Cancel
Save