{"action":"created","issue":{"url":"https://api.github.com/repos/solidusio/solidus/issues/1549","repository_url":"https://api.github.com/repos/solidusio/solidus","labels_url":"https://api.github.com/repos/solidusio/solidus/issues/1549/labels{/name}","comments_url":"https://api.github.com/repos/solidusio/solidus/issues/1549/comments","events_url":"https://api.github.com/repos/solidusio/solidus/issues/1549/events","html_url":"https://github.com/solidusio/solidus/issues/1549","id":184498762,"number":1549,"title":"Canonical Link Incorrect (SEO)","user":{"login":"rsiddle","id":18415,"avatar_url":"https://avatars.githubusercontent.com/u/18415?v=3","gravatar_id":"","url":"https://api.github.com/users/rsiddle","html_url":"https://github.com/rsiddle","followers_url":"https://api.github.com/users/rsiddle/followers","following_url":"https://api.github.com/users/rsiddle/following{/other_user}","gists_url":"https://api.github.com/users/rsiddle/gists{/gist_id}","starred_url":"https://api.github.com/users/rsiddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsiddle/subscriptions","organizations_url":"https://api.github.com/users/rsiddle/orgs","repos_url":"https://api.github.com/users/rsiddle/repos","events_url":"https://api.github.com/users/rsiddle/events{/privacy}","received_events_url":"https://api.github.com/users/rsiddle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-21T14:26:51Z","updated_at":"2016-10-28T09:15:50Z","closed_at":null,"body":"The /products URL needs to have the trailing slash removed[1]. The non-trailing slash is linked to throughout the website:\r\n\r\n    <link href=\"http://localhost:3000/products/\" rel=\"canonical\" />\r\n\r\nHowever, it should be:\r\n\r\n    <link href=\"http://localhost:3000/products\" rel=\"canonical\" />\r\n\r\nEnvironment:\r\n* Ruby 2.3.0\r\n* Solidus 2.0.0\r\n\r\nSources:\r\n[1] https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html"},"comment":{"url":"https://api.github.com/repos/solidusio/solidus/issues/comments/256874184","html_url":"https://github.com/solidusio/solidus/issues/1549#issuecomment-256874184","issue_url":"https://api.github.com/repos/solidusio/solidus/issues/1549","id":256874184,"user":{"login":"mtomov","id":1651750,"avatar_url":"https://avatars.githubusercontent.com/u/1651750?v=3","gravatar_id":"","url":"https://api.github.com/users/mtomov","html_url":"https://github.com/mtomov","followers_url":"https://api.github.com/users/mtomov/followers","following_url":"https://api.github.com/users/mtomov/following{/other_user}","gists_url":"https://api.github.com/users/mtomov/gists{/gist_id}","starred_url":"https://api.github.com/users/mtomov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtomov/subscriptions","organizations_url":"https://api.github.com/users/mtomov/orgs","repos_url":"https://api.github.com/users/mtomov/repos","events_url":"https://api.github.com/users/mtomov/events{/privacy}","received_events_url":"https://api.github.com/users/mtomov/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T09:15:50Z","updated_at":"2016-10-28T09:15:50Z","body":"@jhawthorn  - reason is that index pages represent a _collection_ of items, aka a _folder_ , which is why it is more semantically correct to use a trailing slash on index pages. An ending trailing slash represents a multitude of resources, while no trailing would represent one.\r\n\r\nOn the google link at the top, it's the first example:\r\n\r\n> http://example.com/foo/ (with trailing slash, conventionally a directory)\r\n\r\nBut indeed, Rails's path helpers do not have the canonical rails behaviour embedded, so I agree that it's best to correct the canonical tag as the author proposes."}}
{"actor":{"display_login":"mtomov"}}