{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10756","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10756/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10756/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10756/events","html_url":"https://github.com/yiisoft/yii2/issues/10756","id":131592579,"number":10756,"title":"Pjax fail to prevent replace state, on form submit","user":{"login":"hscstudio","id":2976897,"avatar_url":"https://avatars.githubusercontent.com/u/2976897?v=3","gravatar_id":"","url":"https://api.github.com/users/hscstudio","html_url":"https://github.com/hscstudio","followers_url":"https://api.github.com/users/hscstudio/followers","following_url":"https://api.github.com/users/hscstudio/following{/other_user}","gists_url":"https://api.github.com/users/hscstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/hscstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hscstudio/subscriptions","organizations_url":"https://api.github.com/users/hscstudio/orgs","repos_url":"https://api.github.com/users/hscstudio/repos","events_url":"https://api.github.com/users/hscstudio/events{/privacy}","received_events_url":"https://api.github.com/users/hscstudio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/feature:pjax","name":"feature:pjax","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-05T09:16:07Z","updated_at":"2016-02-05T09:34:20Z","closed_at":null,"body":"I use pjax for form submit\r\n```php\r\n<?php $form = ActiveForm::begin([\r\n        'options' => [\r\n            'data-pjax' => true,\r\n        ],\r\n    ]); ?>\r\n....\r\n```\r\n\r\n\r\nOnly it, and pjax submit running well.\r\n\r\nBut, then I want to prevent replace state, with add parameter data-pjax-replace-state\r\n```php\r\n<?php $form = ActiveForm::begin([\r\n        'options' => [\r\n            'data-pjax' => true,\r\n            'data-pjax-replace-state' => false,\r\n        ],\r\n    ]); ?>\r\n...\r\n```\r\nBut this way not prevent replace state. URL still replace with pjax."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/180270735","html_url":"https://github.com/yiisoft/yii2/issues/10756#issuecomment-180270735","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10756","id":180270735,"user":{"login":"SilverFire","id":4499203,"avatar_url":"https://avatars.githubusercontent.com/u/4499203?v=3","gravatar_id":"","url":"https://api.github.com/users/SilverFire","html_url":"https://github.com/SilverFire","followers_url":"https://api.github.com/users/SilverFire/followers","following_url":"https://api.github.com/users/SilverFire/following{/other_user}","gists_url":"https://api.github.com/users/SilverFire/gists{/gist_id}","starred_url":"https://api.github.com/users/SilverFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilverFire/subscriptions","organizations_url":"https://api.github.com/users/SilverFire/orgs","repos_url":"https://api.github.com/users/SilverFire/repos","events_url":"https://api.github.com/users/SilverFire/events{/privacy}","received_events_url":"https://api.github.com/users/SilverFire/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T09:34:20Z","updated_at":"2016-02-05T09:34:20Z","body":"Why do you think, that `pjax` handles `data-pjax-replace-state` attribute of the form?"}}