diff --git a/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs b/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs index be166b5..bea3856 100644 --- a/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs +++ b/src/EventHub.HttpApi.Host/EventHubHttpApiHostModule.cs @@ -176,7 +176,8 @@ namespace EventHub { builder .WithOrigins( - EventHubUrlOptions.GetWwwConfigValue(configuration) + EventHubUrlOptions.GetWwwConfigValue(configuration), + EventHubUrlOptions.GetAdminConfigValue(configuration) ) .WithAbpExposedHeaders() .SetIsOriginAllowedToAllowWildcardSubdomains() diff --git a/src/EventHub.IdentityServer/EventHub.IdentityServer.csproj b/src/EventHub.IdentityServer/EventHub.IdentityServer.csproj index a686d69..2134161 100644 --- a/src/EventHub.IdentityServer/EventHub.IdentityServer.csproj +++ b/src/EventHub.IdentityServer/EventHub.IdentityServer.csproj @@ -48,7 +48,7 @@ - + diff --git a/src/EventHub.IdentityServer/Pages/Account/LoggedOut.cshtml b/src/EventHub.IdentityServer/Pages/Account/LoggedOut.cshtml index c088de1..f890a83 100644 --- a/src/EventHub.IdentityServer/Pages/Account/LoggedOut.cshtml +++ b/src/EventHub.IdentityServer/Pages/Account/LoggedOut.cshtml @@ -1,4 +1,5 @@ -page "/Account/LoggedOut" +@page "/Account/LoggedOut" + @using Microsoft.AspNetCore.Mvc.Localization @using Volo.Abp.Account.Localization @using Volo.Abp.Account.Web.Pages.Account @@ -18,18 +19,19 @@ page "/Account/LoggedOut" @section styles { } - - - - @L["LoggedOutTitle"] - @L["LoggedOutText"] - @if (Model.PostLogoutRedirectUri != null) - { - @L["ReturnToText"] - } - @if (Model.SignOutIframeUrl != null) - { - - } - - \ No newline at end of file +
+ + + @L["LoggedOutTitle"] + @L["LoggedOutText"] + @if (Model.PostLogoutRedirectUri != null) + { + @L["ReturnToText"] + } + @if (Model.SignOutIframeUrl != null) + { + + } + + +
\ No newline at end of file diff --git a/src/EventHub.Web.Theme/Themes/EventHub/Components/MainNavbar/Default.cshtml b/src/EventHub.Web.Theme/Themes/EventHub/Components/MainNavbar/Default.cshtml index a8bb708..46dd030 100644 --- a/src/EventHub.Web.Theme/Themes/EventHub/Components/MainNavbar/Default.cshtml +++ b/src/EventHub.Web.Theme/Themes/EventHub/Components/MainNavbar/Default.cshtml @@ -13,11 +13,13 @@ @inject IOptions UrlOptions @{ - var returnUrl = WebUtility.UrlEncode(Context.Request.GetEncodedPathAndQuery()); + var returnUrl = WebUtility.UrlEncode(Context.Request.Query.ContainsKey("returnUrl") ? Context.Request.Query["returnUrl"] : Context.Request.GetEncodedPathAndQuery()); + if (returnUrl.IsNullOrWhiteSpace()) { returnUrl = "/"; } + }