{"action":"created","issue":{"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/722","repository_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline","labels_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/722/labels{/name}","comments_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/722/comments","events_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/722/events","html_url":"https://github.com/TheScienceMuseum/collectionsonline/issues/722","id":194995617,"number":722,"title":"Back/Home button","user":{"login":"jamieu","id":91365,"avatar_url":"https://avatars0.githubusercontent.com/u/91365?v=3","gravatar_id":"","url":"https://api.github.com/users/jamieu","html_url":"https://github.com/jamieu","followers_url":"https://api.github.com/users/jamieu/followers","following_url":"https://api.github.com/users/jamieu/following{/other_user}","gists_url":"https://api.github.com/users/jamieu/gists{/gist_id}","starred_url":"https://api.github.com/users/jamieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamieu/subscriptions","organizations_url":"https://api.github.com/users/jamieu/orgs","repos_url":"https://api.github.com/users/jamieu/repos","events_url":"https://api.github.com/users/jamieu/events{/privacy}","received_events_url":"https://api.github.com/users/jamieu/received_events","type":"User","site_admin":false},"labels":[{"id":395526375,"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/labels/design","name":"design","color":"fef2c0","default":false},{"id":391855612,"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/labels/feature-idea","name":"feature-idea","color":"fbca04","default":false},{"id":391847541,"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/labels/in-progress","name":"in-progress","color":"009688","default":false},{"id":391855072,"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/labels/priority-2","name":"priority-2","color":"1976D2","default":false},{"id":391854251,"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/labels/T6h","name":"T6h","color":"F06292","default":false}],"state":"open","locked":false,"assignee":{"login":"tobystokes","id":109024,"avatar_url":"https://avatars2.githubusercontent.com/u/109024?v=3","gravatar_id":"","url":"https://api.github.com/users/tobystokes","html_url":"https://github.com/tobystokes","followers_url":"https://api.github.com/users/tobystokes/followers","following_url":"https://api.github.com/users/tobystokes/following{/other_user}","gists_url":"https://api.github.com/users/tobystokes/gists{/gist_id}","starred_url":"https://api.github.com/users/tobystokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobystokes/subscriptions","organizations_url":"https://api.github.com/users/tobystokes/orgs","repos_url":"https://api.github.com/users/tobystokes/repos","events_url":"https://api.github.com/users/tobystokes/events{/privacy}","received_events_url":"https://api.github.com/users/tobystokes/received_events","type":"User","site_admin":false},"assignees":[{"login":"tobystokes","id":109024,"avatar_url":"https://avatars2.githubusercontent.com/u/109024?v=3","gravatar_id":"","url":"https://api.github.com/users/tobystokes","html_url":"https://github.com/tobystokes","followers_url":"https://api.github.com/users/tobystokes/followers","following_url":"https://api.github.com/users/tobystokes/following{/other_user}","gists_url":"https://api.github.com/users/tobystokes/gists{/gist_id}","starred_url":"https://api.github.com/users/tobystokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobystokes/subscriptions","organizations_url":"https://api.github.com/users/tobystokes/orgs","repos_url":"https://api.github.com/users/tobystokes/repos","events_url":"https://api.github.com/users/tobystokes/events{/privacy}","received_events_url":"https://api.github.com/users/tobystokes/received_events","type":"User","site_admin":false},{"login":"Danwhy","id":8939909,"avatar_url":"https://avatars3.githubusercontent.com/u/8939909?v=3","gravatar_id":"","url":"https://api.github.com/users/Danwhy","html_url":"https://github.com/Danwhy","followers_url":"https://api.github.com/users/Danwhy/followers","following_url":"https://api.github.com/users/Danwhy/following{/other_user}","gists_url":"https://api.github.com/users/Danwhy/gists{/gist_id}","starred_url":"https://api.github.com/users/Danwhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danwhy/subscriptions","organizations_url":"https://api.github.com/users/Danwhy/orgs","repos_url":"https://api.github.com/users/Danwhy/repos","events_url":"https://api.github.com/users/Danwhy/events{/privacy}","received_events_url":"https://api.github.com/users/Danwhy/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-12-12T15:00:04Z","updated_at":"2017-06-30T10:48:07Z","closed_at":null,"body":"[@danwhy / @simonlab - first, and I think only step here for you, is to set a url & maybe a `class` we can use to go back to the SERP page when appropriate. Will pick up the design side with @tobystokes separately]\r\n\r\nThis is primarily for the record pages (obj/doc/person) so that when a user runs a search and clicks though to a single record they have a means (other than the browser back button) of going back to the results set they were on.\r\n\r\nI guess the simplest would be to set a cookie/session var on the SERPs page, so that:\r\n\r\n- a user arriving from a SERP page would see a back button that took them back to the SERP page.\r\n- a user arriving from Google or direct link would get a HOME button (back to home page) _or nothing_.\r\n- the SERP page itself would always show the home button (back to home page) _or nothing_.\r\n\r\nOne gotcha might be to ensure that a user **ONLY sees the back button if coming directly from a SERP page**. We wouldn't want the back button to appear if a user goes off to another page and sees a back button which then leads them to an old/stale result set.\r\n\r\n**1) User does a search**\r\n<img width=\"860\" alt=\"screen shot 2017-02-09 at 18 27 04\" src=\"https://cloud.githubusercontent.com/assets/91365/22797372/de4ddc52-eef5-11e6-8d69-23a5427f46e1.png\">\r\n\r\n**2) User clicks on a results and sees a back button**\r\n![back](https://cloud.githubusercontent.com/assets/91365/22797417/0bcb9368-eef6-11e6-9359-1a98a19123f4.jpg)\r\n\r\n**3) A user arriving to the object page **via any other means** doesn't see the back button (_maybe they see a home button instead, that just goes to the home page - TBD?_)**\r\n![home](https://cloud.githubusercontent.com/assets/91365/22797437/1e09fe7a-eef6-11e6-94fd-3b7f8c3abcb8.jpg)"},"comment":{"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/comments/312237109","html_url":"https://github.com/TheScienceMuseum/collectionsonline/issues/722#issuecomment-312237109","issue_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/722","id":312237109,"user":{"login":"Danwhy","id":8939909,"avatar_url":"https://avatars3.githubusercontent.com/u/8939909?v=3","gravatar_id":"","url":"https://api.github.com/users/Danwhy","html_url":"https://github.com/Danwhy","followers_url":"https://api.github.com/users/Danwhy/followers","following_url":"https://api.github.com/users/Danwhy/following{/other_user}","gists_url":"https://api.github.com/users/Danwhy/gists{/gist_id}","starred_url":"https://api.github.com/users/Danwhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danwhy/subscriptions","organizations_url":"https://api.github.com/users/Danwhy/orgs","repos_url":"https://api.github.com/users/Danwhy/repos","events_url":"https://api.github.com/users/Danwhy/events{/privacy}","received_events_url":"https://api.github.com/users/Danwhy/received_events","type":"User","site_admin":false},"created_at":"2017-06-30T10:48:07Z","updated_at":"2017-06-30T10:48:07Z","body":"Ok, I'll do that. I'll let you know when the PR is ready, so you can have a look over it when I'm done."}}
{"actor":{"display_login":"Danwhy"}}