On 5/23/26 11:22, Neil Roberts wrote:
Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> writes:We do use this render hook for links: https://git.libreoffice.org/infra/libreofficeorg/+/refs/heads/master/layouts/_markup/render-link.htmlOk, cool, maybe the RelPermalink part is the function that does the translation. I did some more testing and found that if you do translate the links then it mostly breaks. It seems that if Hugo can’t recognise the link as referring to an existing md file then it just leaves the link as is. So for example if I translate “(/for-business.md)” to “(/por-entreprenoj.md)” then the link in the final HTML is “/por-entreprenoj.md” which isn’t going to work. Some links don’t have the .md on the end and in that case I guess it would on the live website but on my local test version the links still don’t work because they all need to start with “/eo/”. So we need to remind translators *not* to translate the slugs in the links or it will break.
Or we just drop the .md suffix? Probably it's not needed after all. Ilmari -- To unsubscribe e-mail to: l10n+unsubscribe@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/l10n/ Privacy Policy: https://www.documentfoundation.org/privacy