learn.nuxt.com icon indicating copy to clipboard operation
learn.nuxt.com copied to clipboard

Edit this page incorrect link

Open cyrilf opened this issue 7 months ago • 1 comments

On each page, we can find a Edit this page link at the bottom. However this link points towards a 404 on Github.

For instance, on the home page https://learn.nuxt.com/en:

The edit this page points to: https://github.com/nuxt/learn.nuxt.com/edit/main/content/en/en/0.index.md which is a 404. It should point to https://github.com/nuxt/learn.nuxt.com/edit/main/content/en/0.index.md.

So basically its related to the double /en/en in the url.

The Edit this page uses sourceUrl which is based on page.value.id. The fix should be done on this file by removing the locale from the page.value.id maybe?

cyrilf avatar Apr 24 '25 09:04 cyrilf

Or maybe this prefix configuration option from Nuxt content docs is another solution?

cyrilf avatar Apr 24 '25 10:04 cyrilf