spectral
spectral copied to clipboard
Wrong redirect on meta.stoplight.io for documentation Url
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
- Run the CLI with
--show-documentation-url - click on documentation in the report
- 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