Closed 0perationPrivacy closed 1 year ago
This leading slash issue is also breaking MMS images from displaying.
In a message
record, the media
field looks like: "["https://voipsuite-xxxx.onrender.comuploads/...
Figured it out, the code assumes that the BASE_URL
environment variable has a trailing slash
Figured it out, the code assumes that the
BASE_URL
environment variable has a trailing slash
yes, for now please put a slash at the end of the BASE_URL like in the example. Later we will fix it programatically if someone forgets it. (Growing pains, figuring out all the possibilities of user input errors)
Using a path lib instead of string concatenation should do the trick
Discussed in https://github.com/0perationPrivacy/VoIP/discussions/152