fix route constructor

This commit is contained in:
sbwalker
2024-02-20 14:15:38 -05:00
parent ab09810bef
commit f3f223fa22
2 changed files with 2 additions and 3 deletions

View File

@ -49,8 +49,7 @@ namespace Oqtane.Models
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)