Server 9.0.5 Pro
Using images from seafile in the public libraries does not work - Please see here:
https://files.herbnlegendtx.com/published/wiki/Daily%20Duties/Mopping.md
I included 4 images, only the outside url works.
Server 9.0.5 Pro
Using images from seafile in the public libraries does not work - Please see here:
https://files.herbnlegendtx.com/published/wiki/Daily%20Duties/Mopping.md
I included 4 images, only the outside url works.
So i dove in a little further. When uploading an image for the page that is published it is giving the image the URL:
https://files.herbnlegendtx.com/view-image-via-public-wiki/?slug=wiki&path=s.herbnlegendtx.com/lib/b41d7dc9-2be6-4922-ac34-24468413bcda/file/images/auto-upload/image-1652403532330.png
Which that image errors out with… I was able to navigate to the correct image using this URL:
https://files.herbnlegendtx.com/view-image-via-public-wiki/?slug=wiki&path=/images/auto-upload/image-1652403532330.png
Essentially removing:
s.herbnlegendtx.com/lib/b41d7dc9-2be6-4922-ac34-24468413bcda/file
Thoughts?
I went ahead and fixed this by editing the file:
https://github.com/haiwen/seahub/blob/523f23fc9334c01f07c1a3f11d80a741e5aa08c1/seahub/views/file.py#L2010
and inserting this on Line #2010
if len(image_path.split('file')) > 1:
image_path = image_path.split('file')[1]
Restarted Seafile and now it works as it should.