Skip to content

Commit

Permalink
Merge pull request #3853 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix route constructor
  • Loading branch information
sbwalker authored Feb 20, 2024
2 parents e244b4b + f3f223f commit 4af1305
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Oqtane.Client/UI/Pane.razor
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ else
// pane matches current pane
if (Name.ToLower() == pane.ToLower())
{
if (module.ModuleId == PageState.ModuleId && PageState.Action != Constants.DefaultAction)
if (PageState.ModuleId == module.ModuleId && PageState.Action != Constants.DefaultAction)
{
var moduleType = Type.GetType(module.ModuleType);
if (moduleType != null)
Expand Down
3 changes: 1 addition & 2 deletions Oqtane.Shared/Models/Route.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public Route(string route, string aliaspath)
pos = PagePath.IndexOf("/" + Constants.ModuleDelimiter + "/");
if (pos != -1)
{
ModuleId = PagePath.Substring(pos + 3);
ModuleId = (int.TryParse(ModuleId, out _)) ? ModuleId : "-1";
ModuleId = PagePath.Substring(pos + 3);
PagePath = PagePath.Substring(0, pos);
}
if (ModuleId.Length != 0)
Expand Down

0 comments on commit 4af1305

Please sign in to comment.