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),
        ];
    }
```