Refactoring: Prefix URLs pointing to the backend
Created by: Tirokk
Authored by roschaefer Closed
Describe the bug
The server side rendered frontend serves our images at /api/uploads
. All requests to /api
are proxied to the backend, which serves images at /uploads/
. Right now, the backend mutates all URLs in the response to be prefixed with /api
. This is a design flaw as the backend knows how the frontend proxies requests.
Expected behavior
We should prefix all <img src="URL">
urls in the frontend with /api
so the backend does not need to do it for the frontend.