{"id":21610771,"url":"https://github.com/liebki/navigationmanagerutils","last_synced_at":"2026-02-13T07:02:34.648Z","repository":{"id":65797185,"uuid":"600074129","full_name":"liebki/NavigationManagerUtils","owner":"liebki","description":"A very simple injectable service for Blazor or MAUI, to enhance the NavigationManager by a few simple things.","archived":false,"fork":false,"pushed_at":"2025-01-22T13:25:16.000Z","size":232,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T05:23:44.185Z","etag":null,"topics":["asp-net","blazor","csharp","dotnet","dotnet-maui","maui-blazor","navigationmanager","web"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/NavigationManagerUtils","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liebki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-10T14:24:51.000Z","updated_at":"2025-01-22T13:26:15.000Z","dependencies_parsed_at":"2025-05-06T20:43:54.218Z","dependency_job_id":null,"html_url":"https://github.com/liebki/NavigationManagerUtils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/liebki/NavigationManagerUtils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liebki%2FNavigationManagerUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liebki%2FNavigationManagerUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liebki%2FNavigationManagerUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liebki%2FNavigationManagerUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liebki","download_url":"https://codeload.github.com/liebki/NavigationManagerUtils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liebki%2FNavigationManagerUtils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29398156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net","blazor","csharp","dotnet","dotnet-maui","maui-blazor","navigationmanager","web"],"created_at":"2024-11-24T21:09:33.671Z","updated_at":"2026-02-13T07:02:34.631Z","avatar_url":"https://github.com/liebki.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NavigationManagerUtils\n\n## Overview\n\n**NavigationManagerUtils** is a very simple injectable service, created to enhance the capabilities of the `NavigationManager` in Blazor applications. It provides additional utility methods that simplify navigation and URL parameter management.\n\n---\n\n## Technologies Used\n\n- **.NET Core 8.0**\n\n---\n\n## Features\n\n### What is NavigationManagerUtils?\n\nThis is an injectable service for Blazor applications that builds upon the standard `NavigationManager`, adding commonly-used features for navigation and URL management.\n\n### Example Usage\n\nTo see this utility in action, refer to the `NavManUtilTest` project—a simple Blazor Server application that demonstrates its functionality.\n\n---\n\n## Getting Started\n\n### Installation\n\nAdd the service to your application during configuration:\n\n```csharp\nbuilder.Services.AddTransient\u003cNavManUtils\u003e();\n```\n\n### Injecting the Service\n\n1. **In Code**  \n   Use the `[Inject]` attribute:\n\n   `[Inject] private NavManUtils NavMan { get; set; }`\n\n2. **In Razor Components**  \n   Use the `@inject` directive:\n\n   `@inject NavManUtils NavMan`\n\n---\n\n## Available Methods\n\n1. **`Navigate(string url, bool force = true)`**  \n   Navigate to the specified URL. The `force` parameter determines whether to reload the page even if already on the target URL.\n\n2. **`[DEPRECATED] Reload(bool force = true)`**  \n   Reload the current page. The `force` parameter determines whether to reload from the server.\n\n3. **`UrlHasParameters()`**  \n   Returns `true` if the current URL contains query parameters, otherwise `false`.\n\n4. **`GetUrlParameters(bool removeWhitespaceEntityInValue = false, bool removeWhitespaceEntityInKey = false)`**  \n   Retrieves the query parameters from the current URL as a `Dictionary\u003cstring, string\u003e`.\n\t- `removeWhitespaceEntityInValue`: Strips %20 whitespace entities from parameter values.\n\t- `removeWhitespaceEntityInKey`: Strips %20 whitespace entities from parameter keys.\n\n5. **`GetNavMan()`**  \n   Provides access to the underlying `NavigationManager` instance without requiring separate injection.\n\n---\n\n## License\n\nThis project is licensed under the **GNU General Public License v3.0**. For more details, visit [GNU License](https://choosealicense.com/licenses/gpl-3.0/).\n\n--- ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliebki%2Fnavigationmanagerutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliebki%2Fnavigationmanagerutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliebki%2Fnavigationmanagerutils/lists"}