From 5ae48fda831df4ee4328136f5bb190af48b5f2c6 Mon Sep 17 00:00:00 2001 From: Engincan VESKE <43685404+EngincanV@users.noreply.github.com> Date: Mon, 3 Jun 2024 10:38:30 +0300 Subject: [PATCH] Show swagger URL in the auth-server homepage instead of the root url for the Swagger Client --- .../Pages/Index.cshtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/Pages/Index.cshtml b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/Pages/Index.cshtml index fb4d0ba9ce..13c3f8ddbe 100644 --- a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/Pages/Index.cshtml +++ b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/Pages/Index.cshtml @@ -90,6 +90,10 @@ + @{ + var clientUri = application.ClientUri.Contains("Swagger") ? application.ClientUri.EnsureEndsWith('/') + "swagger/index.html" : application.ClientUri; + } + @if (!application.LogoUri.IsNullOrEmpty()) {
@@ -98,7 +102,7 @@ }

@application.DisplayName

- @application.ClientUri + @clientUri