fix route constructor
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user