]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/user_helper.rb
Return absolute URLs for user images
[rails.git] / app / helpers / user_helper.rb
index c22fef1ea2fa71e8d2f0a922a89e13316d5c5564..86990f9fb7ba4ea9e28c3eb49e858e7794c6ca78 100644 (file)
@@ -50,7 +50,7 @@ module UserHelper
     if user.image_use_gravatar
       user_gravatar_url(user, options)
     elsif user.avatar.attached?
-      url_for(user.avatar.variant(:resize => "100x100>"))
+      polymorphic_url(user.avatar.variant(:resize => "100x100>"))
     elsif user.image.file?
       image_url(user.image.url(:large))
     else