GitHub IssueCommentEvent at 2015-01-01 16:06:28
Repository: yiisoft/yii2
Actor: cebe
Payload: {"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/6717","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/6717/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/6717/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/6717/events","html_url":"https://github.com/yiisoft/yii2/issues/6717","id":53205001,"number":6717,"title":"urlManager problem with empty string url rule","user":{"login":"Lexxtor","id":2376338,"avatar_url":"https://avatars.githubusercontent.com/u/2376338?v=3","gravatar_id":"","url":"https://api.github.com/users/Lexxtor","html_url":"https://github.com/Lexxtor","followers_url":"https://api.github.com/users/Lexxtor/followers","following_url":"https://api.github.com/users/Lexxtor/following{/other_user}","gists_url":"https://api.github.com/users/Lexxtor/gists{/gist_id}","starred_url":"https://api.github.com/users/Lexxtor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lexxtor/subscriptions","organizations_url":"https://api.github.com/users/Lexxtor/orgs","repos_url":"https://api.github.com/users/Lexxtor/repos","events_url":"https://api.github.com/users/Lexxtor/events{/privacy}","received_events_url":"https://api.github.com/users/Lexxtor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type%3Abug","name":"type:bug","color":"e102d8"}],"state":"open","locked":false,"assignee":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/9","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/9/labels","id":831720,"number":9,"title":"2.0.x","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":204,"closed_issues":0,"state":"open","created_at":"2014-10-19T13:49:45Z","updated_at":"2015-01-01T15:42:02Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2014-12-31T21:47:23Z","updated_at":"2015-01-01T16:06:28Z","closed_at":null,"body":"In config I have:\r\n```php\r\n'defaultRoute' => '/front/view/index',\r\n```\r\nDefault start page have gridView with sorting and pagination, whos links are like:\r\n```php\r\n/front/view/index?sort=date\r\n/front/view/index?page=2\r\n```\r\nBut I want them to be like:\r\n```php\r\n/?sort=date\r\n/?page=2\r\n```\r\nSo I try to add URL rules like:\r\n```php\r\n'' => '/front/view/index',\r\n// OR\r\n'/' => '/front/view/index',\r\n```\r\nBut they does not work, links still starts with `/front/view/index`. I think this may be a bug.\r\nAlso, I found a tricky solution:\r\n```php\r\n'<s:$>' => '/front/view/index',\r\n```\r\nThis make links as I wanted `/?page=2`, but it make excess \"s\" parameter, that is not good for clean coding."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/68490281","html_url":"https://github.com/yiisoft/yii2/issues/6717#issuecomment-68490281","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/6717","id":68490281,"user":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"created_at":"2015-01-01T16:06:28Z","updated_at":"2015-01-01T16:06:28Z","body":"Fixed, thanks for reporting!"}}