Skip to content

Support Deep Linking Page Scrolling on route updates for Single Page Applications #5970

@bbusch19

Description

@bbusch19

Content & configuration

Swagger-UI configuration options:

SwaggerUI({
  dom_id: '#swagger-ui',
  docExpansion: 'none',
  deepLinking: true,
})

Is your feature request related to a problem?

I am trying to create my own side navigation for a Swagger-UI project. The problem is that with deepLinking: true, the correct section is only scrolled into view on initial page load.

Describe the solution you'd like

It would be great if the UI would scroll to the correct section on route changes instead of only firing on initialization for SPAs.

Additional context

I am using Vue for this project.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions