Forum › Bug Report
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:
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.
Are you using relative URLs?
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!
Hi, as I’ve mentioned, I paste the absolute URL.
Regarding relative URLs – do you have enabled Relative URLs under server settings? Sorry that my first message wasn’t too specific 🙂
No, I didn’t because it says the sitemaps would be disabled if I do so.
Ok, thank you for informations – I will try today to reproduce this issue on my local instance
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
Ok thank you! We’ll wait until the next release of Publii. I’ve managed a workaround with footer menu.