diff --git a/Bootstrap.Client/Models/HeaderBarModel.cs b/Bootstrap.Client/Models/HeaderBarModel.cs index d58628b6..40f7b006 100644 --- a/Bootstrap.Client/Models/HeaderBarModel.cs +++ b/Bootstrap.Client/Models/HeaderBarModel.cs @@ -1,5 +1,6 @@ using Bootstrap.Client.DataAccess; using Bootstrap.Security; +using Longbow.Configuration; using System.Security.Principal; namespace Bootstrap.Client.Models @@ -13,10 +14,10 @@ namespace Bootstrap.Client.Models /// /// /// - public HeaderBarModel(IIdentity identity) + public HeaderBarModel(IIdentity identity) { var user = BootstrapUser.RetrieveUserByUserName(identity.Name); - Icon = user.Icon; + Icon = $"{ConfigurationManager.AppSettings["AuthHost"]}/{user.Icon.TrimStart('~', '/')}"; DisplayName = user.DisplayName; UserName = user.UserName; SettingsUrl = DictHelper.RetrieveSettingsUrl(); diff --git a/Bootstrap.Client/Views/Shared/Header.cshtml b/Bootstrap.Client/Views/Shared/Header.cshtml index fb09e0e7..03a8d87d 100644 --- a/Bootstrap.Client/Views/Shared/Header.cshtml +++ b/Bootstrap.Client/Views/Shared/Header.cshtml @@ -11,7 +11,7 @@