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

@ -6,6 +6,7 @@ using System.Net.Http;
using Microsoft.AspNetCore.Components;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
namespace Oqtane.Services
{
@ -53,7 +54,7 @@ namespace Oqtane.Services
{
try
{
return await http.PostJsonAsync<User>(CreateApiUrl(Alias, NavigationManager.Uri, "User"), User);
return await http.PostJsonAsync<User>(apiurl + "?alias=" + WebUtility.UrlEncode(Alias.Name), User);
}
catch
{