Skip to content

Conversation

@Piairre
Copy link
Contributor

@Piairre Piairre commented Dec 2, 2025

This PR replaces #7556, targeting the 4.2 branch as requested. @soyuka

Q A
Branch? 4.2
Tickets Fixes #2654
License MIT
Doc PR N/A

Description

When using a custom route name for Swagger UI documentation, the footer links (Swagger UI/ReDoc) were pointing to the hardcoded api_doc route instead of using the actual current route.

Changes

  • Updated src/Symfony/Bundle/Resources/views/SwaggerUi/index.html.twig to use originalRoute and originalRouteParams instead of hardcoded api_doc route
  • This ensures footer links work correctly with custom route names

@soyuka soyuka merged commit ef31270 into api-platform:4.2 Dec 4, 2025
129 of 130 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants