{"action":"created","issue":{"url":"https://api.github.com/repos/NBumgardner/YouTube-Notes/issues/1","repository_url":"https://api.github.com/repos/NBumgardner/YouTube-Notes","labels_url":"https://api.github.com/repos/NBumgardner/YouTube-Notes/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/NBumgardner/YouTube-Notes/issues/1/comments","events_url":"https://api.github.com/repos/NBumgardner/YouTube-Notes/issues/1/events","html_url":"https://github.com/NBumgardner/YouTube-Notes/issues/1","id":153372600,"number":1,"title":"Navigation Bug on Commit 9a41591","user":{"login":"NBumgardner","id":11843918,"avatar_url":"https://avatars.githubusercontent.com/u/11843918?v=3","gravatar_id":"","url":"https://api.github.com/users/NBumgardner","html_url":"https://github.com/NBumgardner","followers_url":"https://api.github.com/users/NBumgardner/followers","following_url":"https://api.github.com/users/NBumgardner/following{/other_user}","gists_url":"https://api.github.com/users/NBumgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/NBumgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NBumgardner/subscriptions","organizations_url":"https://api.github.com/users/NBumgardner/orgs","repos_url":"https://api.github.com/users/NBumgardner/repos","events_url":"https://api.github.com/users/NBumgardner/events{/privacy}","received_events_url":"https://api.github.com/users/NBumgardner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NBumgardner/YouTube-Notes/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/NBumgardner/YouTube-Notes/labels/help%20wanted","name":"help wanted","color":"128A0C"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-06T03:44:38Z","updated_at":"2016-05-06T19:05:08Z","closed_at":null,"body":"Description of Navigation Bug on Commit 9a41591. *Hopefully a trivial issue. I would like to see it resolved, and to learn what caused it.*\r\n\r\n## Bug's Backstory\r\n**Origin:** Bug is on Commit 9a41591, and was introduced by changing the file *server.js*.\r\n\r\nEDIT: This bug is on Commit 307dee6. *My goal is to either fix 307dee6 or 9a41591 so that the refresh button refreshes the current view, or an empty *Change Video* view if no view is selected.*\r\n\r\n**Suspicions:** It likely stems from an incorrect use of pagejs, or involves the initial values for the three flags in *youtube-notes.html*.\r\n\r\n### More About Three Flags\r\nThree flag values are used to determine the current view shown. By default, the flags enabled are the same flags enabled by the function `change2ViewChoose()`. Thus, `http://localhost:8080/` has the same *Choose Video* view as `http://localhost:8080/choose-video`, but with a shorter URL.\r\n\r\n## Bug's Behavior\r\n\r\n- *Fixs self when* the user navigates forward with the arrow button into the URL `http://localhost:8080/`.\r\n- *Breaks self when* the user refreshes any URL other than `http://localhost:8080/`.\r\n- *Every time a navigation arrow is pressed*, the video restarts autoplay from the beginning, even while hidden. I could tell because of the video's audio.\r\n- *If the user navigates with the back navigation arrow to `http://localhost:8080/`*, then the video continues to play without pause. However, if the user then refreshes it, the view becomes the beginning *Choose Video* view.\r\n- *While broken*, navigating with the forward and back arrows does not update the error message. That is, as long as the user does not navigate to before `http://localhost:8080/`.\r\n\r\n### Example Error Messages\r\n`Cannot GET /watch-video`\r\n`Cannot GET /save-notes`\r\n`Cannot GET /choose-video`"},"comment":{"url":"https://api.github.com/repos/NBumgardner/YouTube-Notes/issues/comments/217531564","html_url":"https://github.com/NBumgardner/YouTube-Notes/issues/1#issuecomment-217531564","issue_url":"https://api.github.com/repos/NBumgardner/YouTube-Notes/issues/1","id":217531564,"user":{"login":"NBumgardner","id":11843918,"avatar_url":"https://avatars.githubusercontent.com/u/11843918?v=3","gravatar_id":"","url":"https://api.github.com/users/NBumgardner","html_url":"https://github.com/NBumgardner","followers_url":"https://api.github.com/users/NBumgardner/followers","following_url":"https://api.github.com/users/NBumgardner/following{/other_user}","gists_url":"https://api.github.com/users/NBumgardner/gists{/gist_id}","starred_url":"https://api.github.com/users/NBumgardner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NBumgardner/subscriptions","organizations_url":"https://api.github.com/users/NBumgardner/orgs","repos_url":"https://api.github.com/users/NBumgardner/repos","events_url":"https://api.github.com/users/NBumgardner/events{/privacy}","received_events_url":"https://api.github.com/users/NBumgardner/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T19:05:08Z","updated_at":"2016-05-06T19:05:08Z","body":"After further revisions, bug 2 remains and is less severe, so future commits will include that refresh bug until it can be fixed."}}