In /config/application.rb I have config.active_storage.resolve_model_to_route = :rails_storage_proxy.
I'm then generating the url with Rails.application.routes.url_helpers.rails_representation_url(img, only_path: true)
But I'm still getting the images served through a redirect instead of directly from my rails app like I would expect when I configured proxy mode.
Should I use a different way of generating the url? Or did i configure proxy mode wrong?