{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/5304","repository_url":"https://api.github.com/repos/Yoast/wordpress-seo","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/5304/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/5304/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/5304/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/5304","id":168992502,"number":5304,"title":"Stylesheet warning visiting sitemap with differing www/non-www","user":{"login":"smerriman","id":6667004,"avatar_url":"https://avatars.githubusercontent.com/u/6667004?v=3","gravatar_id":"","url":"https://api.github.com/users/smerriman","html_url":"https://github.com/smerriman","followers_url":"https://api.github.com/users/smerriman/followers","following_url":"https://api.github.com/users/smerriman/following{/other_user}","gists_url":"https://api.github.com/users/smerriman/gists{/gist_id}","starred_url":"https://api.github.com/users/smerriman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smerriman/subscriptions","organizations_url":"https://api.github.com/users/smerriman/orgs","repos_url":"https://api.github.com/users/smerriman/repos","events_url":"https://api.github.com/users/smerriman/events{/privacy}","received_events_url":"https://api.github.com/users/smerriman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/wontfix","name":"wontfix","color":"cccccc"},{"url":"https://api.github.com/repos/Yoast/wordpress-seo/labels/xml%20sitemap","name":"xml sitemap","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-02T21:25:29Z","updated_at":"2016-08-03T20:46:56Z","closed_at":"2016-08-03T12:44:40Z","body":"If a site is installed with the settings set to a www URL, and the sitemap URL is visited without the www (or vice versa), you receive an error:\r\n\r\nError loading stylesheet: An unknown error has occurred (805303f4)\r\n\r\nThe error in itself is not a bug. The bug is that every other URL you visit without www gets automatically redirected to the www version by WordPress to prevent these types of issues from happening. Something about the way Yoast SEO handles this URL gets excluded from that logic. Can this be redirected in the same way?"},"comment":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/comments/237367971","html_url":"https://github.com/Yoast/wordpress-seo/issues/5304#issuecomment-237367971","issue_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/5304","id":237367971,"user":{"login":"smerriman","id":6667004,"avatar_url":"https://avatars.githubusercontent.com/u/6667004?v=3","gravatar_id":"","url":"https://api.github.com/users/smerriman","html_url":"https://github.com/smerriman","followers_url":"https://api.github.com/users/smerriman/followers","following_url":"https://api.github.com/users/smerriman/following{/other_user}","gists_url":"https://api.github.com/users/smerriman/gists{/gist_id}","starred_url":"https://api.github.com/users/smerriman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smerriman/subscriptions","organizations_url":"https://api.github.com/users/smerriman/orgs","repos_url":"https://api.github.com/users/smerriman/repos","events_url":"https://api.github.com/users/smerriman/events{/privacy}","received_events_url":"https://api.github.com/users/smerriman/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T20:46:56Z","updated_at":"2016-08-03T20:46:56Z","body":"You missed the point. As above, the output of the page is not a bug, so this has thing to do with home_url() at all. The bug is the way you are handling the rewrite, which bypasses template_redirect (and thus the redirect_canonical function, which handles automatically fixing www vs non-www)."}}
{"actor":{"display_login":"smerriman"}}