Double media/media/ in some image src URLs
I noticed that some images don’t display in the admin interface by failing to load, even though they are present on disk. The problem is that their src URLs have two times the media/
part in them.
I noticed that on the pages https://mydomain.com/cp-admin/persons
and https://mydomain.com/cp-admin/podcasts
for instance (it might happen in other places, I didn’t check everywhere), and also on the public pages of the instance website. The image of a person or of a podcast has a URL like https://mydomain.com/media/media/podcasts/my_show_name/cover_medium.webp
where the media
part appears twice instead of only once. (The file can be accessed successfully if we remove one media
)
I tried changing the media.baseURL
value in my .env
to https://mydomain.com/
, then to https://mydomain.com/media
, then removing the line entirely from my .env
file, but the behavior stays the same in all three cases.
Castopod version 1.11.0