NavigateUrl fix to deal with scenario where alias has a value and path is ""

This commit is contained in:
Shaun Walker
2020-04-08 11:43:42 -04:00
parent c29195b417
commit 1edc34dca0
5 changed files with 9 additions and 8 deletions

View File

@ -20,7 +20,9 @@ namespace Oqtane.Shared
var uriBuilder = new UriBuilder
{
Path = !string.IsNullOrEmpty(alias)
? $"{alias}/{path}"
? (!string.IsNullOrEmpty(path))
? $"{alias}/{path}"
: $"{alias}"
: $"{path}",
Query = parameters
};