Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Mac image gallery double slashes in path

  • #3929
    Avatar photo[anonymous]

    Hola I’m sorry if this is already a bug or mentioned, I did do a quick search but couldn’t find anything.

    I’ve noticed some times when I create an image gallery and then publish the page the images don’t show up.

    When I investigated the problem the gallery has generated double //’s in the code such as

    /input/media/posts/27//gallery/image.jpg

    I’ve just been copy and pasting that into TextEdit and find-replace all the double //s from everything to just single ones and it fixes it.

    osx 10.14.6
    Publii 0.37 but also noticed it in the one before that too.

    #3930
    Avatar photoBob

    What OS are you using?

    #3943
    Avatar photo[anonymous]

    osx 10.14.6

    #4031
    Avatar photo[anonymous]

    Hi,

    Which hosting are you using? I have checked some pages and double and even triple slashes does not cause any issues with loading images.

    Of course we will investigate the issue to generate always proper paths, but I would like if there is a hosting where it can be a problem.

    #4167
    Avatar photo[anonymous]

    I also noticed the “double slash bug” while creating a menu item with the “Internal link” option (on “Menus → Add menu item”) on my local machine with MacOS 10.14.6.

    If I add a reference to a folder in the field, I got a double slash on the generated link:

    with-double-slash

    If is a direct link to a file, there’s no double slash:

    no-double-slash

    #4172
    Avatar photo[anonymous]

    @Tomasz Dziuda – Sorry for the late reply – I am using Amazon S3 to host the site.

    #4181
    Avatar photo[anonymous]

    @mimobase – I have prepared a simple fix which will be included in v.0.37.2: https://github.com/GetPublii/Publii/issues/849

    @marc_io – unfortunately I am unable to reproduce this issue

    #4182
    Avatar photo[anonymous]

    @TomaszDziuda Probably is something specific of this version of Mac OS.

    But I have solved it by disabling the relative links option on my site settings.