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

Endpoint URLs are malformed after refreshing a statically generated page via redoc-cli with an anchor present in the URL #2090

Closed
Rush opened this issue Jul 20, 2022 · 1 comment · Fixed by #2093
Assignees

Comments

@Rush
Copy link

Rush commented Jul 20, 2022

Describe the bug

  • Click on a specific API endpoint so that an anchor is added to the URL:
    image
  • Now refresh the page
  • The links to API endpoints are malformed
    image

Expected behavior
image

Minimal reproducible OpenAPI snippet(if possible)

openapi: 3.1.0
info:
  title: API
  version: 1.0.0

servers:
  - url: /api

security:
  - bearerAuth: []

paths:
  /profile:
    get:
      responses:
        '200':
          description: User profile
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string

Additional context
Happening also when opening the static file directly in Chrome:
image

@AlexVarchuk
Copy link
Collaborator

Hi @Rush. Thank you for the reporting issue and the steps to reproduce. We'll investigate it.

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.

2 participants