redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Routing unavailable with HashRouter

Open kbourque opened this issue 2 years ago • 0 comments

There are unfortunately situations in which we have to use HashRouter, and I would ideally like the ability to be able to link to certain parts of the spec. So while @kaitmore's solution solves the url overwrite problem, the ability to route to a particular part of the spec from somewhere else on your site is unavailable as a result.

I don't think use BrowserRouter or disabling location updates altogether is a viable solution here. I think @TranquilMarmot's answer using URL parameters is a great idea. Thanks for the help!

Originally posted by @kbourque in https://github.com/Redocly/redoc/issues/655#issuecomment-1710392140

kbourque avatar Sep 07 '23 15:09 kbourque