openservicemesh / osm-docs

a docs page for open service mesh
https://docs.openservicemesh.io
Apache License 2.0
4 stars 40 forks source link

fix lang code lost in rendered link #445

Closed addozhang closed 1 year ago

addozhang commented 2 years ago

After applying the localization feature, the link rendered in a non-default language page lost language code. For example, if we click the internal link on page https://release-v1-2.docs.openservicemesh.io/zh/, it will direct us to the English page.

To fix this, a markdown rendering link hook is involved in which using Hugo function absLangURL will convert the link to the one with the correct language code.

BTW, the commit should be synced to the main branch too.

netlify[bot] commented 2 years ago

Deploy Preview for osm-docs ready!

Name Link
Latest commit 3f0e9915d4ef694c036b8041916635b61a1bc50f
Latest deploy log https://app.netlify.com/sites/osm-docs/deploys/632a3de24de7450008f4e8a0
Deploy Preview https://deploy-preview-445--osm-docs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.