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.

Issue with footer links

  • #9217
    Avatar photo[anonymous]

    When I add an internal link in the footer, I’ve got a strange URL.

    I paste https://mydomain.com/post-title, save the changes. Then when I edit the link again, I got:

    ../../../../../../../../../../post-title

    I did an audit of the website with ahrefs.com, and it tells me that the link ../../../../../../../../../../post-title is a 301 redirect.

    Any help is welcome.

    Thank you

    Julien

    #9234
    Avatar photo[anonymous]

    Hi,

    Are you using relative URLs?

    #9243
    Avatar photo[anonymous]

    Hi, as I’ve mentioned, I paste the absolute URL.

    https://mydomain.com/post-title

    #9244
    Avatar photo[anonymous]

    Hi,

    Regarding relative URLs – do you have enabled Relative URLs under server settings? Sorry that my first message wasn’t too specific 🙂

    #9245
    Avatar photo[anonymous]

    No, I didn’t because it says the sitemaps would be disabled if I do so.

    #9250
    Avatar photo[anonymous]

    Ok, thank you for informations – I will try today to reproduce this issue on my local instance

    #9261
    Avatar photo[anonymous]

    Hi jfrere,

    I have tested this case and the problem appears only if you put as a link “/post-title” instead of “https://mydomain.com/post-title” – it seems that TinyMCE tries to resolve relative URL to the absolute path.

    I have found that this option: https://www.tiny.cloud/docs/configure/url-handling/#convert_urls is responsible for this behaviour, so we will fix it (by disabling this feature) in Publii v.0.42

    #9264
    Avatar photo[anonymous]

    Ok thank you! We’ll wait until the next release of Publii. I’ve managed a workaround with footer menu.