]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:bug: Fix regression, Swagger UI with deep linking (#350)
authorSebastián Ramírez <tiangolo@gmail.com>
Fri, 28 Jun 2019 18:56:48 +0000 (20:56 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Jun 2019 18:56:48 +0000 (20:56 +0200)
fastapi/openapi/docs.py

index 0791b7cc411acd4674dc5f2b3f06a6e4d8633310..f6c996b4bf0af3a3f49d8a861a0ce9c18c678dcc 100644 (file)
@@ -40,7 +40,8 @@ def get_swagger_ui_html(
         SwaggerUIBundle.presets.apis,
         SwaggerUIBundle.SwaggerUIStandalonePreset
         ],
-        layout: "BaseLayout"
+        layout: "BaseLayout",
+        deepLinking: true
     })
     </script>
     </body>