SharpRSS/SharpRSS.Blazor/Extensions/NavigationManagerExtensions.cs
2024-10-14 03:19:39 +02:00

14 lines
459 B
C#

using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.WebUtilities;
using Microsoft.Extensions.Primitives;
namespace SharpRSS.Blazor.Extensions;
public static class NavigationManagerExtensions
{
public static Dictionary<string, StringValues> GetQueryParameters(this NavigationManager navigationManager)
{
var uri = navigationManager.ToAbsoluteUri(navigationManager.Uri);
return QueryHelpers.ParseQuery(uri.Query);
}
}