diennea / docetproject

Docet - an online documentation manager
https://docetproject.org
Apache License 2.0
2 stars 10 forks source link

Page Opened as a "Fallback-Language" Page > Images not Shown #41

Closed mcRoot closed 6 years ago

mcRoot commented 6 years ago

Happens when a page, say a page in english is opened as a default from an original request for a page in a different language XX (one for which no doc is available but for which the descriptor says doc in english must be used): image srcs of the page displayed refers to a path corresponding to resources for language XX that, unfortunately, does not exist, so that images appear broken on the page.

Solution is to parse the page before sending it to the browser so as to change any src of any image in the f page, adopting the corresponding path the code of the actual fallback language (english in the example described above).