search optimizations
This commit is contained in:
@ -4,13 +4,6 @@ namespace Oqtane.Shared
|
||||
{
|
||||
public sealed class SearchUtils
|
||||
{
|
||||
private static readonly List<string> _systemPages;
|
||||
|
||||
static SearchUtils()
|
||||
{
|
||||
_systemPages = new List<string> { "login", "register", "profile", "404", "search" };
|
||||
}
|
||||
|
||||
public static List<string> GetKeywords(string keywords)
|
||||
{
|
||||
var keywordsList = new List<string>();
|
||||
@ -27,10 +20,5 @@ namespace Oqtane.Shared
|
||||
|
||||
return keywordsList;
|
||||
}
|
||||
|
||||
public static bool IsSystemPage(Models.Page page)
|
||||
{
|
||||
return page.Path.Contains("admin") || _systemPages.Contains(page.Path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user