Redocly / redoc

📘 OpenAPI/Swagger-generated API Reference Documentation
https://redocly.github.io/redoc/
MIT License
23.56k stars 2.3k forks source link

Reset of routes in browser #2030

Open majoshi1 opened 2 years ago

majoshi1 commented 2 years ago

We are having a react application that uses hash router. We are facing issue of route in browser getting reset. Steps: -Load application. -Navigate to a route within application that has redoc control. -Scroll down and up again on document open using redoc control. -The route in browser is reset.

rchasman commented 2 years ago

This makes it impossible to scroll down, just gets locked in a loop scrolling back to top.

majoshi1 commented 2 years ago

Any update here please? Here is a react sample link: redoc react hash router Steps: -Load application. -Click on "Pet Store" link. This will open a redoc document. -Scroll down and up again on redoc document. -Expected: The route is browser does not reset. Actual: The route in browser is reset.

majoshi1 commented 9 months ago

Any update here please?