Skip to content

Deep linking does not work for operations with tags containing forward slash #5875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tk303 opened this issue Feb 26, 2020 · 4 comments · May be fixed by #10406
Open

Deep linking does not work for operations with tags containing forward slash #5875

tk303 opened this issue Feb 26, 2020 · 4 comments · May be fixed by #10406

Comments

@tk303
Copy link

tk303 commented Feb 26, 2020

Q&A (please complete the following information)

  • OS: Windows
  • Browser: Chrome
  • Version: latest
  • Method of installation: dist
  • Swagger-UI version: 3.18.3
  • Swagger/OpenAPI version: OpenAPI 3.0

Content & configuration

Example Swagger/OpenAPI definition:

openapi: 3.0.0
info:
  version: 0.0.1
  title: "Swagger Petstore"
tags:
- name: "pet/list"
  description: "Everything about your Pets"
paths:
  /pet:
    get:
      tags:
      - "pet/list"
      summary: "Returns all pets"
      responses:
        "200":
          description: OK  

Swagger-UI configuration options:

const ui = SwaggerUIBundle({
          url: "/docs/rest-api-swagger.yaml",
          dom_id: '#swagger-ui',
          deepLinking: true,
          docExpansion: "none",
          validatorUrl: null,
          presets: [
            SwaggerUIBundle.presets.apis,
            SwaggerUIStandalonePreset
          ]
          layout: "StandaloneLayout"
        )
?yourQueryStringConfig

Describe the bug you're encountering

To reproduce...

Steps to reproduce the behavior:

  1. Start the dev server with the config from above
  2. Go to http://0.0.0.0:3200/#/pet%2Flist
  3. Observe that the pet operation is not unfolded

Expected behavior

Deep linking works

Additional context or thoughts

Similar issue has been reported for spaces and that has been fixed:
#4120

@developedsoftware
Copy link

Just stumbled into this also - is there a fix?

@kalmenius
Copy link

Ditto -- just ran into this at work. I really like the way the UI looks with forward-slash prefixes on each tag, but for now we've decided to rip them out because of how dang useful the deep-linking functionality is.

Would love to be able to restore them in the future!

@mft25
Copy link

mft25 commented Mar 14, 2022

I would also like to see this fixed.

@yl185084
Copy link

this seem to still happen on 5.17.14, can we get some attention on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants