{"id":16430949,"url":"https://github.com/estruyf/spfx-navigation","last_synced_at":"2025-03-21T04:31:52.255Z","repository":{"id":57367358,"uuid":"172936523","full_name":"estruyf/spfx-navigation","owner":"estruyf","description":"SharePoint Framework navigation helper","archived":false,"fork":false,"pushed_at":"2021-10-18T13:31:03.000Z","size":16,"stargazers_count":15,"open_issues_count":4,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T08:28:46.805Z","etag":null,"topics":["navigation","sharepoint","sharepoint-framework"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/estruyf.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}},"created_at":"2019-02-27T15:04:21.000Z","updated_at":"2023-03-13T10:53:50.000Z","dependencies_parsed_at":"2022-08-23T19:30:38.771Z","dependency_job_id":null,"html_url":"https://github.com/estruyf/spfx-navigation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estruyf%2Fspfx-navigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estruyf%2Fspfx-navigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estruyf%2Fspfx-navigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/estruyf%2Fspfx-navigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/estruyf","download_url":"https://codeload.github.com/estruyf/spfx-navigation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811346,"owners_count":16884305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["navigation","sharepoint","sharepoint-framework"],"created_at":"2024-10-11T08:28:48.617Z","updated_at":"2024-10-28T09:21:08.876Z","avatar_url":"https://github.com/estruyf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Managing navigation in SharePoint Framework projects\n\n[![NPM](https://nodei.co/npm/spfx-navigation.png?compact=true)](https://nodei.co/npm/spfx-navigation/)\n\nSharePoint Framework handles it own navigation events. If you want to redirect from your code to another page, it will trigger a full page reload when you use `location.href = \"\u003cyour-url\u003e\"`. This dependency allows you to define how you want to navigate to the page with partial or full page reloads.\n\n## Installation\n\nRun the following command to install the `spfx-navigation` dependency:\n\n```\nnpm i spfx-navigation -S -E\n```\n\n## Usage\n\nOnce the dependency is installed to your project, you can make use of it as follows:\n\n```typescript\nimport { Navigation } from 'spfx-navigation';\n\n/* Navigation with partial page reload */\nNavigation.navigate(\"\u003cyour-url\u003e\");\n\n/* Navigation with full page reload */\nNavigation.navigate(\"\u003cyour-url\u003e\", true);\n```\n\n## Issues\n\nExperiencing issues? Please add these to the dependency its issue list: [SPFx navigation issues](https://github.com/estruyf/spfx-navigation/issues).\n\n## Changes\n\n### 1.2.2\n\n- Fix build in the GitHub workflow","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festruyf%2Fspfx-navigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Festruyf%2Fspfx-navigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Festruyf%2Fspfx-navigation/lists"}