{"action":"created","issue":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/868","labels_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/868/labels{/name}","comments_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/868/comments","events_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/868/events","html_url":"https://github.com/backdrop/backdrop-issues/issues/868","id":68780170,"number":868,"title":"Add an option to redirect to \"canonical\" URL","user":{"login":"quicksketch","id":100206,"avatar_url":"https://avatars.githubusercontent.com/u/100206?v=3","gravatar_id":"","url":"https://api.github.com/users/quicksketch","html_url":"https://github.com/quicksketch","followers_url":"https://api.github.com/users/quicksketch/followers","following_url":"https://api.github.com/users/quicksketch/following{/other_user}","gists_url":"https://api.github.com/users/quicksketch/gists{/gist_id}","starred_url":"https://api.github.com/users/quicksketch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicksketch/subscriptions","organizations_url":"https://api.github.com/users/quicksketch/orgs","repos_url":"https://api.github.com/users/quicksketch/repos","events_url":"https://api.github.com/users/quicksketch/events{/privacy}","received_events_url":"https://api.github.com/users/quicksketch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/type%20-%20feature%20request","name":"type - feature request","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/milestones/3","html_url":"https://github.com/backdrop/backdrop-issues/milestones/1.x-future","labels_url":"https://api.github.com/repos/backdrop/backdrop-issues/milestones/3/labels","id":427669,"number":3,"title":"1.x-future","description":"Milestone for any feature that should be added or bug that should be fixed in the 1.x series at an undetermined time in the future. Please use this for any features that have not had a milestone explicitly stated.","creator":{"login":"quicksketch","id":100206,"avatar_url":"https://avatars.githubusercontent.com/u/100206?v=3","gravatar_id":"","url":"https://api.github.com/users/quicksketch","html_url":"https://github.com/quicksketch","followers_url":"https://api.github.com/users/quicksketch/followers","following_url":"https://api.github.com/users/quicksketch/following{/other_user}","gists_url":"https://api.github.com/users/quicksketch/gists{/gist_id}","starred_url":"https://api.github.com/users/quicksketch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicksketch/subscriptions","organizations_url":"https://api.github.com/users/quicksketch/orgs","repos_url":"https://api.github.com/users/quicksketch/repos","events_url":"https://api.github.com/users/quicksketch/events{/privacy}","received_events_url":"https://api.github.com/users/quicksketch/received_events","type":"User","site_admin":false},"open_issues":64,"closed_issues":3,"state":"open","created_at":"2013-09-14T18:40:59Z","updated_at":"2015-04-26T00:23:13Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-04-15T20:30:41Z","updated_at":"2015-04-26T04:24:38Z","closed_at":null,"body":"This issue is a bit of a followup to https://github.com/backdrop/backdrop-issues/issues/865, where we identified that URLs in Backdrop can be accessed a number of places. Say the alias was set to \"contact\" for node 1:\r\n\r\n- /contact\r\n- /?q=contact\r\n- index.php/?q=contact\r\n- /node/1\r\n- ?q=node/1\r\n- index.php/?q=node/1\r\n\r\nWe should have an option to akin to the \"Global Redirect\" module in core to make it so that all these different URLs are not accessible. In #865, the \"Clean URLs\" page may be renamed to \"URL handling\". After adding the option for \"Use HTTPS for canonical URLs\" we could add another checkbox below it for:\r\n\r\n`[ ] Redirect to canonical URL`\r\n\r\nAs the option states, if a user ended up on a non-aliased, non-clean, old alias, or non-HTTP(S) path, they would be redirected to the single canonical URL. This single solution could provide a lightweight alternative to both global redirect and redirect modules."},"comment":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/comments/96321743","html_url":"https://github.com/backdrop/backdrop-issues/issues/868#issuecomment-96321743","issue_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/868","id":96321743,"user":{"login":"Graham-72","id":10559274,"avatar_url":"https://avatars.githubusercontent.com/u/10559274?v=3","gravatar_id":"","url":"https://api.github.com/users/Graham-72","html_url":"https://github.com/Graham-72","followers_url":"https://api.github.com/users/Graham-72/followers","following_url":"https://api.github.com/users/Graham-72/following{/other_user}","gists_url":"https://api.github.com/users/Graham-72/gists{/gist_id}","starred_url":"https://api.github.com/users/Graham-72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Graham-72/subscriptions","organizations_url":"https://api.github.com/users/Graham-72/orgs","repos_url":"https://api.github.com/users/Graham-72/repos","events_url":"https://api.github.com/users/Graham-72/events{/privacy}","received_events_url":"https://api.github.com/users/Graham-72/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T04:24:38Z","updated_at":"2015-04-26T04:24:38Z","body":"LOL here!"}}