From 6e6b2abd8a82b399cf48ea8a1c301143ac32174c Mon Sep 17 00:00:00 2001 From: vfedosevich Date: Fri, 9 Jan 2015 23:29:10 -0800 Subject: [PATCH] webdav portal home link added to logo --- .../WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs | 8 ++++++-- .../WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml | 2 +- .../WebsitePanel.WebDavPortal.csproj | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs index 3316d657..65491262 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs @@ -10,6 +10,8 @@ namespace WebsitePanel.WebDavPortal { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); + #region Account + routes.MapRoute( name: AccountRouteNames.Logout, url: "account/logout", @@ -20,7 +22,9 @@ namespace WebsitePanel.WebDavPortal name: AccountRouteNames.Login, url: "account/login", defaults: new { controller = "Account", action = "Login" } - ); + ); + + #endregion routes.MapRoute( name: "Office365DocumentRoute", @@ -29,7 +33,7 @@ namespace WebsitePanel.WebDavPortal ); routes.MapRoute( - name: "FilePathRoute", + name: FileSystemRouteNames.FilePath, url: "{org}/{*pathPart}", defaults: new { controller = "FileSystem", action = "ShowContent", pathPart = UrlParameter.Optional }, constraints: new { org = new WebsitePanel.WebDavPortal.Constraints.OrganizationRouteConstraint() } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml index a03b50f7..323bb3a5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml @@ -21,7 +21,7 @@ - @Html.ActionLink(WebDavAppConfigManager.Instance.ApplicationName, "Login", "Account", new { area = "" }, new { @class = "navbar-brand" }) + @Html.RouteLink(WebDavAppConfigManager.Instance.ApplicationName, FileSystemRouteNames.FilePath, new { pathPart = string.Empty }, new { @class = "navbar-brand" })