Skip to content

Commit 85458e0

Browse files
authored
fix(symfony): use app.request.query.get() directly instead of app.request.get() in swagger (#7578)
1 parent fa6a5e4 commit 85458e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/Resources/views/SwaggerUi/index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
{% endfor %}
8282
<br>
8383
Other API docs:
84-
{% set active_ui = app.request.get('ui', 'swagger_ui') %}
84+
{% set active_ui = app.request.query.get('ui', 'swagger_ui') %}
8585
{% if swaggerUiEnabled and active_ui != 'swagger_ui' %}<a href="{{ path('api_doc') }}">Swagger UI</a>{% endif %}
8686
{% if reDocEnabled and active_ui != 're_doc' %}<a href="{{ path('api_doc', {'ui': 're_doc'}) }}">ReDoc</a>{% endif %}
8787
{% if not graphQlEnabled or graphiQlEnabled %}<a {% if graphiQlEnabled %}href="{{ path('api_graphql_graphiql') }}"{% endif %} class="graphiql-link">GraphiQL</a>{% endif %}

0 commit comments

Comments
 (0)