payloadcms / payloadcms/website

Respect version selection when searching

Open
#402 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
TypeScript
Stars
634
Forks
195
Avg merge
11h 43m
Merged PRs (30d)
17

Description

Documentation Issue

When I perform a search in the Payload Docs it does a search against the latest documentation. This means that if I am browsing the Version 2 documentation and I do a search it brings me to the documentation for that page on the Version 3 docs. The work around I've been doing is modifying the URL of the search result page and inserting v2/ after /docs but this can get tedious when searching a lot.

Additional Details

This occurs when viewing documentation for Version 2 and performing a search.

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the search from Version 2 documentation and inspect the website's search and versioned documentation routing entry points. Confirm that results preserve the selected version rather than opening the latest documentation, then verify searches from Version 2 return Version 2 URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, typescript
Domain
documentation, search
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.