rapi-doc / RapiDoc

RapiDoc -WebComponent for OpenAPI Spec
https://rapidocweb.com
MIT License
1.71k stars 285 forks source link

URL won't get decoded, leading in not scrolling to & expanding the corresponding section #939

Open m-glass opened 1 year ago

m-glass commented 1 year ago

1. Problem

I'm using rapidoc in vue just like:

<rapi-doc
    render-style="view"
    update-route="true"
    route-prefix="&operation="
  >
...

Now, when calling the page with a operation query param (e.g. domain.tld/page?operation=get-/entity), it scrolls to the GET entity section and expands it. However, if I provide the url-encoded query param domain.tld/page?operation=get-%2Fentity, it does nothing (scrolling to section and expanding it doesn't work anymore).

2. Expected behavior

Rapidoc considers varying url formats and can decode encoded url strings so that scrollto and expand operations still work.