You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redoc.destroy();// then laterRedoc.init(newOpenApiSpec,{expandResponses: "200,201",sortPropsAlphabetically: true,sortTagsAlphabetically: true,hideSingleRequestSampleTab: true,sideNavStyle: "path-only",},document.getElementById("redoc-container"));
But once the new OpenAPI spec is loaded, clicking on an item of from the tag menu generate the wrong anchor on the url. The only solution is to refresh the page to fix it. It seems that something is not cleaned during call to Redoc.destroy().
Expected behavior
Clicking on an item of from the tag menu generate the right anchor on the url
The text was updated successfully, but these errors were encountered:
Describe the bug
I use Redoc inside an static website with a menu to that allow to switch between docs
When switching doc I call
But once the new OpenAPI spec is loaded, clicking on an item of from the tag menu generate the wrong anchor on the url. The only solution is to refresh the page to fix it. It seems that something is not cleaned during call to
Redoc.destroy()
.Expected behavior
Clicking on an item of from the tag menu generate the right anchor on the url
The text was updated successfully, but these errors were encountered: