mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix #800
Ok, so apparently all we have to do is to remove the `/api` prefix from fixImageUrlMiddleware. I guess that's just a leftover.
This commit is contained in:
parent
fa5b16ddd5
commit
4166936e5f
@ -6,7 +6,7 @@ const legacyUrls = [
|
||||
|
||||
export const fixUrl = url => {
|
||||
legacyUrls.forEach(legacyUrl => {
|
||||
url = url.replace(legacyUrl, '/api')
|
||||
url = url.replace(legacyUrl, '/')
|
||||
})
|
||||
return url
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user