{"action":"opened","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/5873","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/5873/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/5873/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/5873/events","html_url":"https://github.com/TryGhost/Ghost/issues/5873","id":108297196,"number":5873,"title":"Bug: SSL redirects","user":{"login":"sebgie","id":539213,"avatar_url":"https://avatars.githubusercontent.com/u/539213?v=3","gravatar_id":"","url":"https://api.github.com/users/sebgie","html_url":"https://github.com/sebgie","followers_url":"https://api.github.com/users/sebgie/followers","following_url":"https://api.github.com/users/sebgie/following{/other_user}","gists_url":"https://api.github.com/users/sebgie/gists{/gist_id}","starred_url":"https://api.github.com/users/sebgie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebgie/subscriptions","organizations_url":"https://api.github.com/users/sebgie/orgs","repos_url":"https://api.github.com/users/sebgie/repos","events_url":"https://api.github.com/users/sebgie/events{/privacy}","received_events_url":"https://api.github.com/users/sebgie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-25T10:00:57Z","updated_at":"2015-09-25T10:00:57Z","closed_at":null,"body":"### Issue Summary\r\n\r\nAutomatic SSL redirects show wrong behaviour under certain circumstanced (see examples).\r\n\r\n### Steps to Reproduce\r\n\r\nconfig.js:\r\n- `forceAdminSSL: true`\r\n- `url: http://domain.com/blog/`\r\n\r\nVisit: `http://domain.com/blog/ghost`\r\nRedirect: `https://domain.com/blog/blog/ghost`\r\nExpected: `https://domain.com/blog/ghost`\r\n\r\nconfig.js:\r\n- `forceAdminSSL: true`\r\n- `url: http://domain.com/`\r\n\r\nVisit: `http://domain.com/ghost/?test=true`\r\nRedirect: `https://domain.com/ghost/%3Ftest=true/?test=true`\r\nExpected: `https://domain.com/ghost/?test=true`\r\n\r\n### Technical details\r\n\r\n* Ghost Version: master\r\n* Client OS: OSX\r\n* Server OS: Vagrant\r\n* Node Version: 0.10.38\r\n* Browser: Chrome\r\n* Database: Sqlite"}}