Links overwriting react routes
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 25.9k
- Forks
- 2.4k
- Avg merge
- 13h 10m
- Merged PRs (30d)
- 4
Description
We have an application, that uses react routes. Now, consider following flow:
Paths -> Requests (get, post etc) -> Security
For above flow, redoc is creating href to security schemas. On click of the href, the browser url is changed with #content id. This affects the react routing of our application. Is there a way to avoid this? If not, is it possible to override this behavior?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported flow from Paths through Requests and Security in a React-routed application, then inspect how Redoc creates href links to security schemas. Determine whether the resulting #content URL changes the application's React route and document a clear way to avoid or override that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100