{"id":16822812,"url":"https://github.com/strml/backbone.routenotfound","last_synced_at":"2025-04-11T03:11:44.881Z","repository":{"id":65990992,"uuid":"8539097","full_name":"STRML/backbone.routeNotFound","owner":"STRML","description":"Simple plugin that fires an event to let the application know that no routes matched, so you can fire a custom 404 handler.","archived":false,"fork":false,"pushed_at":"2013-03-03T16:59:01.000Z","size":112,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T03:11:40.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/STRML.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-03T16:51:05.000Z","updated_at":"2025-02-28T11:15:56.000Z","dependencies_parsed_at":"2023-02-19T20:45:27.007Z","dependency_job_id":null,"html_url":"https://github.com/STRML/backbone.routeNotFound","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/STRML%2Fbackbone.routeNotFound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRML%2Fbackbone.routeNotFound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRML%2Fbackbone.routeNotFound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/STRML%2Fbackbone.routeNotFound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/STRML","download_url":"https://codeload.github.com/STRML/backbone.routeNotFound/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333604,"owners_count":21086200,"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":[],"created_at":"2024-10-13T11:05:58.621Z","updated_at":"2025-04-11T03:11:44.866Z","avatar_url":"https://github.com/STRML.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"backbone.routeNotFound\n======================\n\nSimple plugin that fires an event to let the application know that no routes matched, so you can fire a custom 404 handler.\n\n\nInstall\n-------\n\nInclude backbone.routeNotFound after backbone.js and underscore.js.\n\nIf you're using any plugins that override Backbone.history.prototype.loadUrl, include this plugin *after* those plugins\nto ensure changes to loadUrl are not overwritten.\n\nUsage\n-----\n\nA example bit of code to redirect on an invalid route:\n\n```javascript\n// router.js\n\n// ...\n\ninitialize: function(){\n  this.listenTo(Backbone.history, 'routeNotFound', this.onRouteNotFound);\n},\n\nonRouteNotFound: function(){\n  console.log(\"Route not found, redirecting...\");\n  Backbone.history.navigate('', {trigger: true});\n}\n \n// ...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrml%2Fbackbone.routenotfound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrml%2Fbackbone.routenotfound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrml%2Fbackbone.routenotfound/lists"}