{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1721","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1721/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1721/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1721/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/1721","id":47745645,"number":1721,"title":"Canonical Trailing Slash Is Indeed an Issue","user":{"login":"stevejenkins","id":858627,"avatar_url":"https://avatars.githubusercontent.com/u/858627?v=3","gravatar_id":"","url":"https://api.github.com/users/stevejenkins","html_url":"https://github.com/stevejenkins","followers_url":"https://api.github.com/users/stevejenkins/followers","following_url":"https://api.github.com/users/stevejenkins/following{/other_user}","gists_url":"https://api.github.com/users/stevejenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/stevejenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevejenkins/subscriptions","organizations_url":"https://api.github.com/users/stevejenkins/orgs","repos_url":"https://api.github.com/users/stevejenkins/repos","events_url":"https://api.github.com/users/stevejenkins/events{/privacy}","received_events_url":"https://api.github.com/users/stevejenkins/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/canonical","name":"canonical","color":"006b75"},{"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"jdevalk","id":487629,"avatar_url":"https://avatars.githubusercontent.com/u/487629?v=3","gravatar_id":"","url":"https://api.github.com/users/jdevalk","html_url":"https://github.com/jdevalk","followers_url":"https://api.github.com/users/jdevalk/followers","following_url":"https://api.github.com/users/jdevalk/following{/other_user}","gists_url":"https://api.github.com/users/jdevalk/gists{/gist_id}","starred_url":"https://api.github.com/users/jdevalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdevalk/subscriptions","organizations_url":"https://api.github.com/users/jdevalk/orgs","repos_url":"https://api.github.com/users/jdevalk/repos","events_url":"https://api.github.com/users/jdevalk/events{/privacy}","received_events_url":"https://api.github.com/users/jdevalk/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2014-11-04T18:09:28Z","updated_at":"2015-11-20T14:47:39Z","closed_at":null,"body":"I've read the info in #1522, #1336, and #1352. The result always seems to be that it's not a big deal.\r\n\r\nHere's why I think it might be a big deal. :)\r\n\r\nFacebook doesn't like 301s when scraping. If you run the OG Object Debugger (https://developers.facebook.com/tools/debug/og/object/ for http://www.stevejenkins.com/blog/ I get the following errors:\r\n\r\n`Critical Errors That Must Be Fixed\r\nCould Not Follow Redirect Path\tUsing data from http://www.stevejenkins.com/blog because there was an error following the redirect path.\r\nWarning\r\nErrors That Must Be Fixed\r\nCircular Redirect Path\tCircular redirect path detected (see 'Redirect Path' section for details).\r\nCould Not Follow Redirect\tURL requested a HTTP redirect, but it could not be followed.`\r\n\r\nI'm also getting:\r\n\r\n`To find the object, these are the redirects we had to follow\r\noriginal\thttp://www.stevejenkins.com/blog/\r\nog:url\thttp://www.stevejenkins.com/blog\r\n301\thttp://www.stevejenkins.com/blog/`\r\n\r\nI believe I understand the issues, and so what I'm asking for is a user-selectable option to manually add the trailing slash to the home_url for the front page's canonical and og:url tags. It's helpful in cases like mine where the blog is in a subdirectly and not on the root. Again, this is not an issue so much with the search engines, but with the Facebook scraping, as seen by the errors above.\r\n\r\nI tried manually editing line 813 of class-frontend.php to read:\r\n\r\n` $canonical = home_url()( '/' );`\r\n\r\nbut it had no effect.\r\n\r\nCan someone suggest a manual work-around for now, and may I suggest a manual override in a future release of this excellent plugin?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/comments/158420942","html_url":"https://github.com/Yoast/wordpress-seo/issues/1721#issuecomment-158420942","issue_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/1721","id":158420942,"user":{"login":"adriandw","id":15925155,"avatar_url":"https://avatars.githubusercontent.com/u/15925155?v=3","gravatar_id":"","url":"https://api.github.com/users/adriandw","html_url":"https://github.com/adriandw","followers_url":"https://api.github.com/users/adriandw/followers","following_url":"https://api.github.com/users/adriandw/following{/other_user}","gists_url":"https://api.github.com/users/adriandw/gists{/gist_id}","starred_url":"https://api.github.com/users/adriandw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriandw/subscriptions","organizations_url":"https://api.github.com/users/adriandw/orgs","repos_url":"https://api.github.com/users/adriandw/repos","events_url":"https://api.github.com/users/adriandw/events{/privacy}","received_events_url":"https://api.github.com/users/adriandw/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T14:47:39Z","updated_at":"2015-11-20T14:47:39Z","body":"I installed the code suggested by gitfreestone above.\r\nThe source code of my homepage now includes the trailing slash as follows\r\n`<link rel=\"canonical\" href=\"http://compton.parish.hants.gov.uk/\" />`\r\n\r\nFirefox SEO Doctor is now satisfied that the page is indexable.\r\nYoast 3.0.3 still complains that \r\n`Your homepage cannot be indexed by search engines. This is very bad for SEO and should be fixed.`\r\n\r\nWhy is this?\r\nCould it be that Yoast has decided the page is non-indexable before the function wpseo_canonical_home_url_fix has been called?\r\n\r\n"}}