tolgee-js icon indicating copy to clipboard operation
tolgee-js copied to clipboard

file-storage-url does not seems to work well with // prefix

Open wfjsw opened this issue 2 years ago • 3 comments

Consider following settings:

tolgee.file-storage-url=//translate-static.example.com
tolgee.front-end-url=https://translate.example.com

The Screenshots in Quick Translation is looking for https://translate.example.com/translate-static.example.com/uploaded-images/xxx

wfjsw avatar Aug 19 '23 06:08 wfjsw

After close investigation this looks like a tolgee-platform issue.

wfjsw avatar Aug 19 '23 06:08 wfjsw

Sorry for late response. May I ask what is your use case specifically?

JanCizmar avatar Aug 29 '23 13:08 JanCizmar

It just seems that it cannot handle the // prefix, which is a common way to automatically switch between http/https using the base address by browser.

wfjsw avatar Aug 29 '23 13:08 wfjsw

Hey, since we never stated // prefix is supported I am closing this, since there seems to be no need to actually add this. If you wish, you can submit PR fixing this and we will accept it.

JanCizmar avatar Apr 23 '24 08:04 JanCizmar