discuitnet / discuit

A free and open-source community discussion platform.
https://discuit.net
GNU Affero General Public License v3.0
384 stars 40 forks source link

[BUG] 404 when opening a Discuit image link from Discuit #102

Closed roomfullofcommits closed 3 weeks ago

roomfullofcommits commented 3 weeks ago

Opening a link to an image hosted on Discuit like in this test post results in a 404. Reloading the page with the 404 shows the image. Going back doesn't show the post again until reloading. Pasting the image link into a browser directly loads the image as expected.

I had the same behavior on Android with Firefox and Chrome and on desktop with Firefox and Chromium.

Screenshots ![image](https://github.com/discuitnet/discuit/assets/99999855/ef280e4b-fac8-4952-9d5a-bb7bc210be30) Post with link ![image](https://github.com/discuitnet/discuit/assets/99999855/3369c623-e341-4e10-851d-651d92fb74c4) 404 after clicking the link ![image](https://github.com/discuitnet/discuit/assets/99999855/1c3f8e48-2190-4af0-800c-8fa689d71cc7) Image showing after reloading the page ![image](https://github.com/discuitnet/discuit/assets/99999855/e84a884d-3ee1-4f11-a714-d6ae792fdad9) Image still showing after going back ![image](https://github.com/discuitnet/discuit/assets/99999855/5fd1be36-9207-4183-bae2-ba2d693fcc45) The post showing up again after reloading