# Avatar URL changed via platform does not return complete

**URL:** https://meta.discourse.org/t/avatar-url-changed-via-platform-does-not-return-complete/306685
**Category:** Development
**Tags:** rest-api
**Created:** [May 3, 2024, 8:29pm UTC](https://meta.discourse.org/t/avatar-url-changed-via-platform-does-not-return-complete/306685 "2024-05-03T20:29:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![edu\_moura](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/edu_moura/32/379905_2.png) [@edu\_moura](https://meta.discourse.org/u/edu_moura)
#### Post date: [May 3, 2024, 8:29pm UTC](https://meta.discourse.org/t/avatar-url-changed-via-platform-does-not-return-complete/306685/1 "2024-05-03T20:29:32Z")

</div>

When changing the user’s avatar via the discourse platform or via the api, it does not return the complete url with the cdn, it only returns the avatar path.  
ex:  
how to return /avatar\_test/test/…png

as it should:  
[https://cdn.example.com/avatar\_test/test/......png](https://cdn.example.com/avatar_test/test/......png)  
How do I always return the full url.
