{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/118","repository_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from","labels_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/118/comments","events_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/118/events","html_url":"https://github.com/jekyll/jekyll-redirect-from/issues/118","id":171460466,"number":118,"title":"Support defining redirects in central _config.yml","user":{"login":"danfowler","id":772616,"avatar_url":"https://avatars.githubusercontent.com/u/772616?v=3","gravatar_id":"","url":"https://api.github.com/users/danfowler","html_url":"https://github.com/danfowler","followers_url":"https://api.github.com/users/danfowler/followers","following_url":"https://api.github.com/users/danfowler/following{/other_user}","gists_url":"https://api.github.com/users/danfowler/gists{/gist_id}","starred_url":"https://api.github.com/users/danfowler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfowler/subscriptions","organizations_url":"https://api.github.com/users/danfowler/orgs","repos_url":"https://api.github.com/users/danfowler/repos","events_url":"https://api.github.com/users/danfowler/events{/privacy}","received_events_url":"https://api.github.com/users/danfowler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-16T16:33:53Z","updated_at":"2016-10-21T01:23:39Z","closed_at":null,"body":"I currently have a GitHub Pages repo (https://github.com/frictionlessdata/specs) that has been updated drastically to redirect certain paths to another GitHub pages site entirely.  This requires the old paths to remain on the site with lots of `redirect_to`s to their new URLs.  It would be nice to define these redirects centrally in, say, the `_config.yml` file so that the repository is less cluttered.  Is this possible?\r\n\r\nI imagine it would look something like this:\r\n\r\n```yaml\r\nredirects:\r\n  - from: /tabular-diff-format/\r\n    to: http://specs.okfnlabs.org/tabular-diff-format/\r\n  - from: /sleep/\r\n    to: http://specs.okfnlabs.org/sleep/\r\n```"},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/comments/255270597","html_url":"https://github.com/jekyll/jekyll-redirect-from/issues/118#issuecomment-255270597","issue_url":"https://api.github.com/repos/jekyll/jekyll-redirect-from/issues/118","id":255270597,"user":{"login":"nickmccurdy","id":927220,"avatar_url":"https://avatars.githubusercontent.com/u/927220?v=3","gravatar_id":"","url":"https://api.github.com/users/nickmccurdy","html_url":"https://github.com/nickmccurdy","followers_url":"https://api.github.com/users/nickmccurdy/followers","following_url":"https://api.github.com/users/nickmccurdy/following{/other_user}","gists_url":"https://api.github.com/users/nickmccurdy/gists{/gist_id}","starred_url":"https://api.github.com/users/nickmccurdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickmccurdy/subscriptions","organizations_url":"https://api.github.com/users/nickmccurdy/orgs","repos_url":"https://api.github.com/users/nickmccurdy/repos","events_url":"https://api.github.com/users/nickmccurdy/events{/privacy}","received_events_url":"https://api.github.com/users/nickmccurdy/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T01:23:38Z","updated_at":"2016-10-21T01:23:38Z","body":"I like the idea of centralizing configuration in larger projects. However, wouldn't it be tricky to find the \"from\" pages nondeterministically? For example, what if a file with redirects is renamed or has a different URL because of a change to the site's permalink settings? Then the redirect would be broken, since the \"from\" page wouldn't be found."}}
{"actor":{"display_login":"nickmccurdy"}}