Removed anchor property and hash is only set if there is anchor
This commit is contained in:
@ -76,8 +76,8 @@ namespace Oqtane.Shared
|
||||
: $"{path}",
|
||||
Query = querystring,
|
||||
};
|
||||
|
||||
var navigateUrl = uriBuilder.Uri.PathAndQuery + "#" + anchor;
|
||||
anchor = string.IsNullOrEmpty(anchor) ? "" : "#" + anchor;
|
||||
var navigateUrl = uriBuilder.Uri.PathAndQuery + anchor;
|
||||
return navigateUrl;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user