spectral icon indicating copy to clipboard operation
spectral copied to clipboard

Wrong redirect on meta.stoplight.io for documentation Url

Open jschaefer77 opened this issue 11 months ago • 0 comments

Describe the bug With the new feature --show-documentation-url urls are generated for the core ruleset. Example: https://meta.stoplight.io/docs/spectral/docs/reference/openapi-rules.md#oas3-valid-schema-example Following this link, there is a redirect on meta.stoplight.io and the resulting url will be https://meta.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules instead of https://meta.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#oas3-valid-schema-example

To Reproduce

  1. Run the CLI with --show-documentation-url
  2. click on documentation in the report
  3. See error wrong redirect

Expected behavior Redirect should include as well the fragment. Example: https://meta.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#oas3-valid-schema-example

Environment (remove any that are not applicable):

  • Library version: 6.15.0
  • OS: MacOS 15.4.1
  • Browser: Chrome 135

jschaefer77 avatar May 07 '25 10:05 jschaefer77