nuxt / nuxt/nuxt.com

Docs: "Read more in Docs" links ignore selected version (always redirect to latest)

Open
#2,078 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
457
Forks
272
Avg merge
13h 33m
Merged PRs (30d)
23

Description

Environment

Docs website: https://nuxt.com/

Reproduction
  1. Go to a versioned documentation page, for example:
    https://nuxt.com/docs/v3.20/guide/...

  2. Locate a section with a “Read more in Docs > API > Components > NuxtLink” type link.

  3. Click the link.

  4. Observe that the opened page is under:
    https://nuxt.com/docs/api/... (latest)

  5. instead of:
    https://nuxt.com/docs/v3.20/api/...

Image Image Image
Describe the bug

When browsing the documentation with a specific version selected (for example v3.20), some internal "Read more in Docs" links redirect back to the latest docs instead of staying within the selected version.

This causes the user to unintentionally leave the versioned documentation context.

Additional context

No response

Logs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the versioned documentation entry point, such as /docs/v3.20/guide/..., and trace how “Read more in Docs > API > Components > NuxtLink” links are generated on the Nuxt website. Verify that the link handling preserves the selected version and ends at /docs/v3.20/api/... rather than /docs/api/... .

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
documentation, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.