[Bug] When using Object Storage, after some actions, the browser redirects to just the avatar image via a 307 redirect
Describe the bug
Certain actions will cause the browser to load the avatar image due to a 307 redirect. This happens when using object storage (non-AWS) with buckets and url-paths enabled.
Steps to reproduce
- Enable Object Storage
- Upload avatars for the user account and podcast.
- Get notifications.
- Go to "Mark all as Read"
- Notice that the browser displays the podcast Cover image as stored on the object storage.
- You have to use the back button to go back to the notifications screen.
- Other actions will do this, but I don't have a complete list
-
- Posting a new post on the Podcast page. After clicking "Send", it takes me to the avatar image stored on the object storage.
Expected behavior
Clicking on an action would not result in the entire window loading the 307 redirect for just an image.
Actual behavior
Clicking the action results in the 307 redirect to the object storage for an image loaded on the page results in the entire browser window opening the remote location for the image on the object storage.
Relevant logs and/or screenshots
I can reproduce on my instance at-will, but some notes:
- I'm using Digital Oceans.
- I'm using object storage with a bucket, and a path bucket at the end of the endpoint url. In addition, I have force url paths to true.
Context
- Castopod: 1.40
- OS: Debian 12
- Browser: Chrome, Vivaldi
- Web server: Caddy
- Using object storage with a path at the end of the endpoint as well as a bucket and path-urls to true.