# Proxy avatar urls broken in quotes with sub folder install

**URL:** <https://meta.discourse.org/t/proxy-avatar-urls-broken-in-quotes-with-sub-folder-install/64821>\
**Category:** Bug\
**Tags:** subfolder\
**Created:** [20. Juni 2017 um 17:58 UTC](https://meta.discourse.org/t/proxy-avatar-urls-broken-in-quotes-with-sub-folder-install/64821 "2017-06-20T17:58:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [20. Juni 2017 um 17:58 UTC](https://meta.discourse.org/t/proxy-avatar-urls-broken-in-quotes-with-sub-folder-install/64821/1 "2017-06-20T17:58:01Z")

</div>

On a subfolder install site I noticed that the avatar letters were broken in quotes.

I don’t really know, but I think that `Rails.root` in line 124 needs to be replaced with `Discourse.getURL` (which makes me wonder about the other 71 files that refer to `Rails.root`)

> <https://github.com/discourse/discourse/blob/main/app/controllers/user_avatars_controller.rb#L124>

---

_[View the full topic](https://meta.discourse.org/t/proxy-avatar-urls-broken-in-quotes-with-sub-folder-install/64821)._
