Skip to content
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

Links on the sidebar won't work if the operation ID contains backslashes #1551

Closed
ekisu opened this issue Mar 2, 2021 · 2 comments
Closed

Comments

@ekisu
Copy link

ekisu commented Mar 2, 2021

When the operation IDs have backslashes, clicking on the operations in the sidebar won't take me to the operation details. It seems that it needs an extra backslash character, as adding it to the URL manually makes it work.

Tested with the following spec file, on the live demo

openapi: "3.0.0"
info:
  version: 1.0.0
  title: Backslash Example
servers:
  - url: http://example.com/v1
paths:
  /pets:
    get:
      summary: List all pets
      operationId: test\listPets
      tags:
        - pets
      responses:
        '200':
          description: A paged array of pets
          content:
            application/json:    
              schema:
                type: string
  /dogs:
    get:
      summary: List all dogs
      operationId: test\listDogs
      tags:
        - pets
      responses:
        '200':
          description: A paged array of dogs
          content:
            application/json:    
              schema:
                type: string
@aLLeXUs
Copy link

aLLeXUs commented Mar 7, 2021

I have the same issue, sent a PR to fix this.

@lornajane
Copy link
Contributor

This was fixed in #1513 and is available in the current version of Redoc - I'll close this issue, but let us know if you need anything else.

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

Successfully merging a pull request may close this issue.

3 participants