{"action":"created","issue":{"url":"https://api.github.com/repos/inca/voie/issues/9","labels_url":"https://api.github.com/repos/inca/voie/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/inca/voie/issues/9/comments","events_url":"https://api.github.com/repos/inca/voie/issues/9/events","html_url":"https://github.com/inca/voie/issues/9","id":125558225,"number":9,"title":"Does Voie work from file:// protocol with hash paths?","user":{"login":"niaxi","id":13182486,"avatar_url":"https://avatars.githubusercontent.com/u/13182486?v=3","gravatar_id":"","url":"https://api.github.com/users/niaxi","html_url":"https://github.com/niaxi","followers_url":"https://api.github.com/users/niaxi/followers","following_url":"https://api.github.com/users/niaxi/following{/other_user}","gists_url":"https://api.github.com/users/niaxi/gists{/gist_id}","starred_url":"https://api.github.com/users/niaxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niaxi/subscriptions","organizations_url":"https://api.github.com/users/niaxi/orgs","repos_url":"https://api.github.com/users/niaxi/repos","events_url":"https://api.github.com/users/niaxi/events{/privacy}","received_events_url":"https://api.github.com/users/niaxi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-08T07:32:37Z","updated_at":"2016-01-16T08:45:52Z","closed_at":"2016-01-15T06:08:25Z","body":"I am attempting to build a desktop app using NWjs (v0.12.3) http://nwjs.io/ and the well thought-out Voie (v0.6.1) router. NWjs renders app UI by loading an html file using the \"file://\" protocol. I cannot get the \"root\" state to activate. \r\n\r\nThe \"root\" state is defined as follows:\r\n\r\n```\r\napp.add('root', {\r\n  enter: ( ctx ) => {\r\n    console.log('**ROOT**');\r\n  }\r\n});\r\n```\r\n\r\nThe base file that wires up Voie + Vue is loaded in NWjs as \r\n\r\n```\r\nfile:///Users/path/to/project/../index.html\r\n```\r\n\r\nI have not been able to see that lovely console log `**ROOT**` yet.\r\n\r\nIn addition, I am limited to hashes only so my second state is defined for `#/cats` like so:\r\n\r\napp.add('cats', {\r\n  path: '#/cats',\r\n  enter: ( ctx ) => {\r\n    console.log('**CATS**');\r\n  }\r\n});\r\n\r\nTo activate this state, I go to:\r\n\r\n```\r\nfile:///Users/path/to/project/../index.html#/cats\r\n```\r\n\r\nNo dice. :(\r\n\r\nI'm thinking I must have missed something in the docs. I'm still investigating this, next stop is looking into how the path matching works. Any feedback will be welcome."},"comment":{"url":"https://api.github.com/repos/inca/voie/issues/comments/172173388","html_url":"https://github.com/inca/voie/issues/9#issuecomment-172173388","issue_url":"https://api.github.com/repos/inca/voie/issues/9","id":172173388,"user":{"login":"niaxi","id":13182486,"avatar_url":"https://avatars.githubusercontent.com/u/13182486?v=3","gravatar_id":"","url":"https://api.github.com/users/niaxi","html_url":"https://github.com/niaxi","followers_url":"https://api.github.com/users/niaxi/followers","following_url":"https://api.github.com/users/niaxi/following{/other_user}","gists_url":"https://api.github.com/users/niaxi/gists{/gist_id}","starred_url":"https://api.github.com/users/niaxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niaxi/subscriptions","organizations_url":"https://api.github.com/users/niaxi/orgs","repos_url":"https://api.github.com/users/niaxi/repos","events_url":"https://api.github.com/users/niaxi/events{/privacy}","received_events_url":"https://api.github.com/users/niaxi/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T08:45:52Z","updated_at":"2016-01-16T08:45:52Z","body":"Thank you for a very useful take on Application state transitions + routing :smile: "}}