yiisoft/yii2 — pull request #3516 by marciocamello (2014-05-20 12:03:05+00:00)
Title: Change getLinks() to this code for route rules

This code return correct "self": "https://example.com/users/100"

```php
public function getLinks()
{
return [
Link::REL_SELF => Url::to(['users/'.$this->id],true),
];
}
```