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

Abierto
#93 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 6 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript

Línea de trabajo

Start by tracing how documentation/settings.json and x-strapi-config.path are handled when the Swagger UI route is registered. Reproduce the issue with /cms/documentation and /documentation, then verify that changing the setting moves the working route and no longer leaves the UI only at /documentation.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

issue: bug severity: medium source: sdk-plugin
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.

Lenguaje dominante
TypeScript
Estrellas
24
Forks
13
Merge medio
5 d 3 h
PR fusionados (30 d)
5

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de strapi/sdk-plugin

Todos los issues de strapi/sdk-plugin

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.