mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2024-11-14 17:44:20 +01:00
14 lines
459 B
C#
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);
|
|
}
|
|
} |