further changes for site creation

This commit is contained in:
Shaun Walker
2020-02-26 01:37:48 -05:00
parent b4ddc45829
commit 4262865990
3 changed files with 19 additions and 9 deletions

View File

@ -5,6 +5,7 @@ using System.Linq;
using Microsoft.AspNetCore.Components;
using System.Collections.Generic;
using Oqtane.Shared;
using System.Net;
namespace Oqtane.Services
{
@ -45,7 +46,7 @@ namespace Oqtane.Services
}
else
{
return await http.PostJsonAsync<Site>(CreateApiUrl(Alias, NavigationManager.Uri, "Site"), Site);
return await http.PostJsonAsync<Site>(apiurl + "?alias=" + WebUtility.UrlEncode(Alias.Name), Site);
}
}