Skip to content

Commit

Permalink
Fixing some urls
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed Oct 3, 2017
1 parent 033d78b commit 86c4b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static void ApplySelection(MenuItem menuItem, dynamic menuItemShape, View
bool match = menuItem.RouteValues != null && RouteMatches(menuItem.RouteValues, viewContext.RouteData.Values);

// if route match failed, try comparing URL strings, if
if (!match && menuItem.Href != null)
if (!match && !String.IsNullOrWhiteSpace(menuItem.Href) && menuItem.Href != "#")
{
string url = menuItem.Href.Replace("~/", viewContext.HttpContext.Request.PathBase);
match = viewContext.HttpContext.Request.Path.Equals(url, StringComparison.OrdinalIgnoreCase);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public FileSystemStore(string localPath, string requestUrlPrefix, string pathPre
_localPath = localPath;
_requestUrlPrefix = String.IsNullOrWhiteSpace(requestUrlPrefix) ? "" : "/" + NormalizePath(requestUrlPrefix);
_pathPrefix = pathPrefix;
_publicPathPrefix = Combine(_requestUrlPrefix, _pathPrefix);
_publicPathPrefix = String.IsNullOrEmpty(_requestUrlPrefix) ? _pathPrefix : Combine(_requestUrlPrefix, _pathPrefix);
}

public string Combine(params string[] paths)
Expand Down

0 comments on commit 86c4b20

Please sign in to comment.