From 5faf2ed451eb8498c59c8894734bd4bdd5ca7368 Mon Sep 17 00:00:00 2001 From: Robert Anthony Date: Mon, 23 Jun 2025 23:04:30 -0400 Subject: [PATCH] Fix a missing param in the docs --- docs_src/custom_docs_ui/tutorial002.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_src/custom_docs_ui/tutorial002.py b/docs_src/custom_docs_ui/tutorial002.py index 9925d5236..953098dd7 100644 --- a/docs_src/custom_docs_ui/tutorial002.py +++ b/docs_src/custom_docs_ui/tutorial002.py @@ -17,7 +17,7 @@ async def custom_swagger_ui_html(req: Request): return get_swagger_ui_html( openapi_url=f"{root_path}/{app.openapi_url}", title=app.title + " - Swagger UI", - oauth2_redirect_url=app.swagger_ui_oauth2_redirect_url, + oauth2_redirect_url=f"{root_path}/{app.swagger_ui_oauth2_redirect_url}", swagger_js_url=f"{root_path}/static/swagger-ui-bundle.js", swagger_css_url=f"{root_path}/static/swagger-ui.css", )