optimized cross tenant logic and fixed bug related to reordering modules in panes

This commit is contained in:
Shaun Walker
2020-03-04 09:28:02 -05:00
parent 06257943ca
commit 061043bd15
8 changed files with 75 additions and 63 deletions

View File

@ -1,7 +1,5 @@
using System;
using Microsoft.AspNetCore.Components;
using Oqtane.Models;
using Oqtane.Shared;
namespace Oqtane.Services
{
@ -30,5 +28,15 @@ namespace Oqtane.Services
apiurl += "api/" + serviceName;
return apiurl;
}
public static string CreateCrossTenantUrl(string url, Alias alias)
{
if (alias != null)
{
url += (url.Contains("?")) ? "&" : "?";
url += "aliasid=" + alias.AliasId.ToString();
}
return url;
}
}
}