Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRouting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,14 @@ internal string GetGxRouteValue(string path)
}
public bool ServiceInPath(String path, out String actualPath)
{
actualPath = null;
string tmppath = path.Substring(0, 1).Equals("/") ? path.Substring(1) : path;
int pos = tmppath.IndexOf("/");
string innerPath = tmppath.Substring(pos, tmppath.Length - pos);
actualPath = FindPath( innerPath, servicesPathUrl, true);
if (pos > 0)
{
string innerPath = tmppath.Substring(pos, tmppath.Length - pos);
actualPath = FindPath(innerPath, servicesPathUrl, true);
}
if (String.IsNullOrEmpty(actualPath))
{
// fallback
Expand Down