{"action":"closed","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/9633","repository_url":"https://api.github.com/repos/TryGhost/Ghost","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/9633/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/9633/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/9633/events","html_url":"https://github.com/TryGhost/Ghost/issues/9633","id":323176723,"number":9633,"title":"/edit/ redirects with custom admin URL fail in Safari","user":{"login":"kevinansfield","id":415,"avatar_url":"https://avatars2.githubusercontent.com/u/415?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinansfield","html_url":"https://github.com/kevinansfield","followers_url":"https://api.github.com/users/kevinansfield/followers","following_url":"https://api.github.com/users/kevinansfield/following{/other_user}","gists_url":"https://api.github.com/users/kevinansfield/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinansfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinansfield/subscriptions","organizations_url":"https://api.github.com/users/kevinansfield/orgs","repos_url":"https://api.github.com/users/kevinansfield/repos","events_url":"https://api.github.com/users/kevinansfield/events{/privacy}","received_events_url":"https://api.github.com/users/kevinansfield/received_events","type":"User","site_admin":false},"labels":[{"id":38409089,"url":"https://api.github.com/repos/TryGhost/Ghost/labels/bug","name":"bug","color":"EB2C00","default":true},{"id":81443636,"url":"https://api.github.com/repos/TryGhost/Ghost/labels/good%20first%20issue","name":"good first issue","color":"B3E58B","default":true},{"id":82875520,"url":"https://api.github.com/repos/TryGhost/Ghost/labels/server","name":"server","color":"0B939C","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-15T11:28:40Z","updated_at":"2018-05-21T14:26:33Z","closed_at":"2018-05-21T14:26:33Z","author_association":"CONTRIBUTOR","body":"### Issue Summary\r\n\r\nSafari doesn't respect # params in redirects across domains so if your admin domain is different to your blog domain you can't use https://example.com/post-slug/edit/ to open the post in the editor.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Configure your blog to have a different admin domain (different port also shows issue)\r\n2. Open a post in safari\r\n3. Add `/edit/` to the end of the URL in the address bar and press <kbd>Enter</kbd>\r\n4. Note that you're redirected to the admin home screen instead of the post editor\r\n\r\nI think a fix here could be to initially redirect to the non-hash admin URL because Ghost will then automatically redirect that to the hash-url. Eg:\r\n\r\nhttps://example.com/post-slug/edit/ ->\r\nhttps://admin.example.com/ghost/editor/post-id/ ->\r\nhttps://admin.example.com/ghost/#/editor/post-id/\r\n\r\nSafari should then respect the #-param redirect because the second redirect happens on the same domain. This _should_ work because we know that signup works in Safari and the signup e-mails include the non-hash URL but it's untested as part of a larger redirect chain.\r\n\r\n### Technical details:\r\n\r\n* Ghost Version: 1.22.8\r\n* Node Version: n/a\r\n* Browser/OS: Safari/macOS\r\n* Database: n/a"}}
{"actor":{"display_login":"kevinansfield"}}