{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8562","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8562/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8562/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8562/events","html_url":"https://github.com/yiisoft/yii2/issues/8562","id":81060874,"number":8562,"title":"AssetManager::getAssetUrl problem with filemtime","user":{"login":"porshkevich","id":8709638,"avatar_url":"https://avatars.githubusercontent.com/u/8709638?v=3","gravatar_id":"","url":"https://api.github.com/users/porshkevich","html_url":"https://github.com/porshkevich","followers_url":"https://api.github.com/users/porshkevich/followers","following_url":"https://api.github.com/users/porshkevich/following{/other_user}","gists_url":"https://api.github.com/users/porshkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/porshkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porshkevich/subscriptions","organizations_url":"https://api.github.com/users/porshkevich/orgs","repos_url":"https://api.github.com/users/porshkevich/repos","events_url":"https://api.github.com/users/porshkevich/events{/privacy}","received_events_url":"https://api.github.com/users/porshkevich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:to%20be%20verified","name":"status:to be verified","color":"fbca04"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:bug","name":"type:bug","color":"e102d8"}],"state":"closed","locked":false,"assignee":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/9","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.x","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":346,"closed_issues":2,"state":"open","created_at":"2014-10-19T13:49:45Z","updated_at":"2015-05-27T09:22:27Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-26T17:31:12Z","updated_at":"2015-05-27T09:22:27Z","closed_at":"2015-05-27T09:22:27Z","body":"In code:\r\n\r\n```php\r\nif ($this->appendTimestamp && ($timestamp = @filemtime(\"$basePath/$asset\")) > 0) {\r\n```\r\n$basePath can be set to \"@webroot/asset\", but 'filemtime' need real filename not alias\r\n\r\nIt may need to replace\r\n```php\r\n@filemtime(\"$basePath/$asset\")\r\n```\r\nto\r\n```php\r\n@filemtime(Yii::getAlias(\"$basePath/$asset\"))\r\n```"}}