Skip to content

[bug]: Cannot override Swagger UI public path via x-strapi-config.path in settings.json #93

@Abdubek

Description

@Abdubek

What version of @strapi/sdk-plugin are you using?

Strapi version:
5.18.1

Plugin version:
@strapi/plugin-documentation 5.18.1

What's Wrong?

It is not possible to change the public path for the Swagger UI in Strapi via settings.json using:

{
  "x-strapi-config": {
    "path": "/cms/documentation"
  }
}

The Swagger UI remains accessible only at /documentation — the configuration has no effect.

To Reproduce

Steps to reproduce:

  1. Add the following to documentation/settings.json:
{
  "x-strapi-config": {
    "path": "/cms/documentation"
  }
}
  1. Restart Strapi.

  2. Open /cms/documentation — returns 404.

  3. The Swagger UI is still available only at /documentation.

Expected Behaviour

Expected behavior:
Setting "x-strapi-config.path" should change the public route of the Swagger UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions