{"action":"created","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/4828","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/4828/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/4828/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/4828/events","html_url":"https://github.com/TryGhost/Ghost/issues/4828","id":54749165,"number":4828,"title":"Bug: Enforced trailing slash causes issues with Facebook social plugins when migrating.","user":{"login":"fubhy","id":1172528,"avatar_url":"https://avatars.githubusercontent.com/u/1172528?v=3","gravatar_id":"","url":"https://api.github.com/users/fubhy","html_url":"https://github.com/fubhy","followers_url":"https://api.github.com/users/fubhy/followers","following_url":"https://api.github.com/users/fubhy/following{/other_user}","gists_url":"https://api.github.com/users/fubhy/gists{/gist_id}","starred_url":"https://api.github.com/users/fubhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fubhy/subscriptions","organizations_url":"https://api.github.com/users/fubhy/orgs","repos_url":"https://api.github.com/users/fubhy/repos","events_url":"https://api.github.com/users/fubhy/events{/privacy}","received_events_url":"https://api.github.com/users/fubhy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-19T10:46:02Z","updated_at":"2015-01-19T13:19:34Z","closed_at":null,"body":"### Issue Summary\r\nFacebook treats URLs with or without trailing slash as separate URLs. This causes a series of issues with the Facebook Scraper including the Likes counter being reset to 0 when migrating from a blogging platform that does not enforce trailing slashes on blog posts. Redirecting from a URL without a trailing slash to one with a trailing slash does not solve the issue either because Facebook follows all redirects and only looks at the canonical URL of the final destination. Due to this, migrating from other blogging platforms with social plugins is a non-option in some cases.\r\n\r\n### Steps to Reproduce\r\nSet up a blog with the platform of your choice and publish a post without a trailing slash. \"Like\" the post on Facebook. Migrate to Ghost (use CloudFlare or the likes to set up your custom URL). Check your \"Like\" counter on the blog post on Ghost. It will be 0 because of the trailing /."},"comment":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/comments/70490839","html_url":"https://github.com/TryGhost/Ghost/issues/4828#issuecomment-70490839","issue_url":"https://api.github.com/repos/TryGhost/Ghost/issues/4828","id":70490839,"user":{"login":"fubhy","id":1172528,"avatar_url":"https://avatars.githubusercontent.com/u/1172528?v=3","gravatar_id":"","url":"https://api.github.com/users/fubhy","html_url":"https://github.com/fubhy","followers_url":"https://api.github.com/users/fubhy/followers","following_url":"https://api.github.com/users/fubhy/following{/other_user}","gists_url":"https://api.github.com/users/fubhy/gists{/gist_id}","starred_url":"https://api.github.com/users/fubhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fubhy/subscriptions","organizations_url":"https://api.github.com/users/fubhy/orgs","repos_url":"https://api.github.com/users/fubhy/repos","events_url":"https://api.github.com/users/fubhy/events{/privacy}","received_events_url":"https://api.github.com/users/fubhy/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T13:19:34Z","updated_at":"2015-01-19T13:19:34Z","body":"I guess one could argue that enforcing this URL pattern makes migrating from other blogging platforms impossible without losing Facebook Likes, Google Plus +1's. If that makes this *technically* makes this a bug is another question. It's a limitation for sure. ;) "}}