{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/galleryplus/issues/206","labels_url":"https://api.github.com/repos/owncloud/galleryplus/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/galleryplus/issues/206/comments","events_url":"https://api.github.com/repos/owncloud/galleryplus/issues/206/events","html_url":"https://github.com/owncloud/galleryplus/issues/206","id":93068152,"number":206,"title":"Fix broken view when going back to a nested folder","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/galleryplus/labels/8.0","name":"8.0","color":"5C3D1F"},{"url":"https://api.github.com/repos/owncloud/galleryplus/labels/8.1","name":"8.1","color":"7A5229"},{"url":"https://api.github.com/repos/owncloud/galleryplus/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/galleryplus/labels/feature:photowall","name":"feature:photowall","color":"d4c5f9"},{"url":"https://api.github.com/repos/owncloud/galleryplus/labels/QA%20-%20Testing","name":"QA - Testing","color":"02d7e1"}],"state":"open","locked":false,"assignee":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/galleryplus/milestones/11","html_url":"https://github.com/owncloud/galleryplus/milestones/13%20(2015-07-12)","labels_url":"https://api.github.com/repos/owncloud/galleryplus/milestones/11/labels","id":1174265,"number":11,"title":"13 (2015-07-12)","description":"","creator":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":1,"state":"open","created_at":"2015-06-21T23:02:55Z","updated_at":"2015-07-08T17:22:08Z","due_on":"2015-07-11T22:00:00Z","closed_at":null},"comments":5,"created_at":"2015-07-05T02:27:13Z","updated_at":"2015-07-10T05:42:40Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n1. Create the following hierarchy\r\n```\r\nFolder1\r\n-Folder2\r\n--Folder3\r\n```\r\n2. Put some pictures in each folder\r\n3. Open Gallery and go to Folder3\r\n4. Click on the Home icon in the breadcrumb\r\n5. Click on the browser's back button\r\n\r\n### Expected result\r\n\r\nThe view at step 3 should be shown again\r\n\r\n### Actual result\r\n\r\nThe URL says we're in Folder3\r\nThe thumbnails are put in an album named Folder3\r\nThe breadcrumb says we're in Folder2\r\n\r\nCtrl+F5 reloads the album correctly (since it uses location.hash to determine the album)\r\n\r\nThe state must not be saved correctly or the map is not built properly.\r\n\r\nI suspect it comes from here:\r\nhttps://github.com/owncloud/galleryplus/blob/master/js/gallery.js#L19-L32\r\n\r\nand it's probably not the only scenario where the wrong mapping is retrieved.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/23705256-fix-broken-view-when-going-back-to-a-nested-folder?utm_campaign=plugin&utm_content=tracker%2F9328526&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9328526&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/owncloud/galleryplus/issues/comments/120234615","html_url":"https://github.com/owncloud/galleryplus/issues/206#issuecomment-120234615","issue_url":"https://api.github.com/repos/owncloud/galleryplus/issues/206","id":120234615,"user":{"login":"setnes","id":12475102,"avatar_url":"https://avatars.githubusercontent.com/u/12475102?v=3","gravatar_id":"","url":"https://api.github.com/users/setnes","html_url":"https://github.com/setnes","followers_url":"https://api.github.com/users/setnes/followers","following_url":"https://api.github.com/users/setnes/following{/other_user}","gists_url":"https://api.github.com/users/setnes/gists{/gist_id}","starred_url":"https://api.github.com/users/setnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/setnes/subscriptions","organizations_url":"https://api.github.com/users/setnes/orgs","repos_url":"https://api.github.com/users/setnes/repos","events_url":"https://api.github.com/users/setnes/events{/privacy}","received_events_url":"https://api.github.com/users/setnes/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T05:42:40Z","updated_at":"2015-07-10T05:42:40Z","body":"The test case you described works for me using ultimatedev on 8.1.\r\n\r\nHowever, when I attempt to switch to the file view I get taken to the root directory.  When I click the back button from there I loose this game.  I also can't enter the slideshow from the files app using ultimatedev on 8.1.  I haven't figured that one out."}}