Merge pull request #4093 from sbwalker/dev
fix #4091 - double slash generated for home page path ("/") and urlparameters
This commit is contained in:
commit
73ad97859c
|
@ -80,8 +80,8 @@ namespace Oqtane.Shared
|
||||||
// add urlparameters to path
|
// add urlparameters to path
|
||||||
if (!string.IsNullOrEmpty(urlparameters))
|
if (!string.IsNullOrEmpty(urlparameters))
|
||||||
{
|
{
|
||||||
if (urlparameters.StartsWith("/")) urlparameters = urlparameters.Remove(0, 1);
|
if (urlparameters.StartsWith("/")) urlparameters = urlparameters.Substring(1);
|
||||||
path += $"/{Constants.UrlParametersDelimiter}/{urlparameters}";
|
path += (path.EndsWith("/") ? "" : "/") + $"{Constants.UrlParametersDelimiter}/{urlparameters}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// build url
|
// build url
|
||||||
|
|
Loading…
Reference in New Issue
Block a user