redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Links overwriting react routes

Open majoshi1 opened this issue 3 years ago • 4 comments

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?

majoshi1 avatar May 17 '22 13:05 majoshi1

Hi @majoshi1, thank you for your question. Soon we have a plan to include auth section in Operations(Request Operations too). After that Operations will not have a link to Auth section on top.

Seems, it can be the solution for your case.

AlexVarchuk avatar May 17 '22 13:05 AlexVarchuk

related https://github.com/Redocly/redoc/pull/2022

AlexVarchuk avatar May 27 '22 15:05 AlexVarchuk

https://github.com/Redocly/redoc/issues/2021 https://github.com/Redocly/redoc/issues/2030

AlexVarchuk avatar May 31 '22 13:05 AlexVarchuk

#2051

majoshi1 avatar Jul 06 '22 14:07 majoshi1