Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

314
Visualizações
How to uninitialize (destroy) Redoc?

I am using Redoc to generate API docs GUI. The application is made as single page application including API docs. But there is an issue in the Redoc behaviour. When Redoc is initialized and rendered and I click on another page which is longer than the screen (it is scrollable), the URL is changing the same way as if I would be on the apidocs page. I mean following:

  1. go to apidocs page - Redoc is initialized and rendered
  2. go to another page
  3. scroll the page
  4. URL is changing like if I am on apidocs page - to current URL e.g. following is added #operation/MyResource:[GET->/my_endpoint] and whole URL is https://www.mydomain.zz/not_apidocs_page#operation/MyResource:[GET->/my_endpoint] instead of https://www.mydomain.zz/not_apidocs_page only.

Just one solution came in my mind and it is to uninitialize (destroy) Redoc everytime when I leave apidocs page and initialize it everytime I visit the page. I don't like this idea and this solution, there is no reason, why to re-initialize multiple times, but I didn't have luck in founding another solution. And moreover I didn't have any luck with looking the way how to uninitialize the Redoc. Could you help me, please? How to uninitialize (destroy) Redoc? Or is there way how to force Redoc to watch scrolling limited on one specific URL?

Thank you.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda