{"action":"created","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/6700","repository_url":"https://api.github.com/repos/bolt/bolt","labels_url":"https://api.github.com/repos/bolt/bolt/issues/6700/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/6700/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/6700/events","html_url":"https://github.com/bolt/bolt/issues/6700","id":230696477,"number":6700,"title":"[BUG] Canonical URL in <head> missing?","user":{"login":"xiaohutai","id":4630335,"avatar_url":"https://avatars4.githubusercontent.com/u/4630335?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaohutai","html_url":"https://github.com/xiaohutai","followers_url":"https://api.github.com/users/xiaohutai/followers","following_url":"https://api.github.com/users/xiaohutai/following{/other_user}","gists_url":"https://api.github.com/users/xiaohutai/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaohutai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaohutai/subscriptions","organizations_url":"https://api.github.com/users/xiaohutai/orgs","repos_url":"https://api.github.com/users/xiaohutai/repos","events_url":"https://api.github.com/users/xiaohutai/events{/privacy}","received_events_url":"https://api.github.com/users/xiaohutai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-23T12:54:27Z","updated_at":"2017-07-16T11:40:42Z","closed_at":"2017-07-16T11:40:42Z","body":"I remember in the past (Bolt 2) that if you didn't set a `canonical`, you still get a canonical url in your `<head>`.\r\n\r\nDetails\r\n-------\r\n\r\n - Relevant Bolt Version: [ `3.2.*` ] I am on `3.2.14` specifically\r\n - Install type: [ Zip/tarball install | Composer install ]\r\n - PHP version: [ `5.6` ]\r\n - Used web server: [ Apache ] version [ `2.2.22` ]\r\n\r\nReproduction\r\n------------\r\n\r\n 1. Install Bolt\r\n 2. Add some dummy content\r\n 3. View the website and inspect the source: canonical is missing (I'm looking for a `<link rel=\"canonical\" href=\"...\">`)\r\n\r\n\r\nIf I set the `canonical` setting to:\r\n- `://`\r\n- `http://`\r\n- `https://`\r\n- `bolt.xiao.twokings.eu` (my dev environment)\r\n- `true` becomes `1` (so: \"http://1/)\r\n\r\nthen it shows up in the source (basically any non-empty string works).\r\n\r\nBoth missing/empty values and `false` will actually hide the `<link>` element.\r\n\r\n---\r\nI can't really pinpoint since which version this occurs. I'm pretty sure Bolt 2 always added a canonical (tested on a 2.2.21 website). I'm not sure whether this is intended behavior or not (for Bolt 3)."},"comment":{"url":"https://api.github.com/repos/bolt/bolt/issues/comments/315603463","html_url":"https://github.com/bolt/bolt/issues/6700#issuecomment-315603463","issue_url":"https://api.github.com/repos/bolt/bolt/issues/6700","id":315603463,"user":{"login":"GawainLynch","id":1427081,"avatar_url":"https://avatars7.githubusercontent.com/u/1427081?v=4","gravatar_id":"","url":"https://api.github.com/users/GawainLynch","html_url":"https://github.com/GawainLynch","followers_url":"https://api.github.com/users/GawainLynch/followers","following_url":"https://api.github.com/users/GawainLynch/following{/other_user}","gists_url":"https://api.github.com/users/GawainLynch/gists{/gist_id}","starred_url":"https://api.github.com/users/GawainLynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GawainLynch/subscriptions","organizations_url":"https://api.github.com/users/GawainLynch/orgs","repos_url":"https://api.github.com/users/GawainLynch/repos","events_url":"https://api.github.com/users/GawainLynch/events{/privacy}","received_events_url":"https://api.github.com/users/GawainLynch/received_events","type":"User","site_admin":false},"created_at":"2017-07-16T11:40:41Z","updated_at":"2017-07-16T11:40:41Z","body":"Catching this one in the July Spring Clean … 3.3.0 is only _days_ away :tada: :champagne: "}}
{"actor":{"display_login":"GawainLynch"}}