content
content copied to clipboard
[Edit this page on GitHub] link in v1 docs points to wrong GitHub edit path
Environment
Website
Reproduction
click on [Edit this page on GitHub] on the end of a v1 docs page: e.g.
- https://content.nuxtjs.org/v1/getting-started/introduction/
- https://content.nuxtjs.org/fr/v1/getting-started/introduction/
Describe the bug
The GitHub edit link for English now [-] and how it should look like [+]
- https://github.com/nuxt/content/edit/main/docs/content/v1/<path/to/file>
+ https://github.com/nuxt/content/edit/main/docs/content-v1/en/<path/to/file>
The GitHub edit link for other languages now [-] and how it should look like [+]
- https://github.com/nuxt/content/edit/main/docs/content/<lang>/v1/<path/to/file>
+ https://github.com/nuxt/content/edit/main/docs/content-v1/<lang>/<path/to/file>
Additional context
This might be caused by the redirects of the v1 docs and how they are handled: https://github.com/nuxt/content/blob/0d3882dc81495ef2d08019461e6cf96efbea3b4d/docs/public/_redirects#L1-L21
So it’s maybe related to Docus and how it handles redirects and therefore link generation.
This probably is the wrong place for this issue.
Logs
No response