{"action":"created","issue":{"url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/140","labels_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/140/comments","events_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/140/events","html_url":"https://github.com/wvuweb/cleanslate-cms/issues/140","id":58374119,"number":140,"title":"Feature Request -- Disable ability to incorrectly add an internal link","user":{"login":"joshrcook","id":2475205,"avatar_url":"https://avatars.githubusercontent.com/u/2475205?v=3","gravatar_id":"","url":"https://api.github.com/users/joshrcook","html_url":"https://github.com/joshrcook","followers_url":"https://api.github.com/users/joshrcook/followers","following_url":"https://api.github.com/users/joshrcook/following{/other_user}","gists_url":"https://api.github.com/users/joshrcook/gists{/gist_id}","starred_url":"https://api.github.com/users/joshrcook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshrcook/subscriptions","organizations_url":"https://api.github.com/users/joshrcook/orgs","repos_url":"https://api.github.com/users/joshrcook/repos","events_url":"https://api.github.com/users/joshrcook/events{/privacy}","received_events_url":"https://api.github.com/users/joshrcook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-20T16:16:05Z","updated_at":"2015-02-20T20:56:56Z","closed_at":null,"body":"When Lisa and I first started using CleanSlate, before we knew any better, we were adding internal links to pages using the \"Url\" field in the link UI.  We have since learned that you should use the \"page\" ui to link to a specific internal page, and only use the url field with an external link.  However, from time to time, someone who doesn't know the correct way or possibly forgets will insert a link (or in some cases lots of links) the wrong way, resulting in rework either by us or them.  \r\n\r\nWould it be possible to basically prohibit internal links from the URL field?  I'm not sure if there are use cases where we would need to have an internal link that would use the URL field, but I can't think of any right off the top of my head.  This would probably parse the URL to either prohibit anything that starts with a '/', or anything that starts with the page url like \"http://it.wvu.edu\", \"https://it.wvu.edu\", or \"it.wvu.edu/\".  I don't think you would have to check against too many matches to rule out the majority of these internal links.\r\n\r\nI think it would really help if the system enforced this best practice.  I try to provide training to people, but that doesn't stop all mistakes.  Thoughts?"},"comment":{"url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/comments/75317764","html_url":"https://github.com/wvuweb/cleanslate-cms/issues/140#issuecomment-75317764","issue_url":"https://api.github.com/repos/wvuweb/cleanslate-cms/issues/140","id":75317764,"user":{"login":"dmolsen","id":2746,"avatar_url":"https://avatars.githubusercontent.com/u/2746?v=3","gravatar_id":"","url":"https://api.github.com/users/dmolsen","html_url":"https://github.com/dmolsen","followers_url":"https://api.github.com/users/dmolsen/followers","following_url":"https://api.github.com/users/dmolsen/following{/other_user}","gists_url":"https://api.github.com/users/dmolsen/gists{/gist_id}","starred_url":"https://api.github.com/users/dmolsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmolsen/subscriptions","organizations_url":"https://api.github.com/users/dmolsen/orgs","repos_url":"https://api.github.com/users/dmolsen/repos","events_url":"https://api.github.com/users/dmolsen/events{/privacy}","received_events_url":"https://api.github.com/users/dmolsen/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T20:56:55Z","updated_at":"2015-02-20T20:56:55Z","body":"@joshrcook -\r\n\r\nWe're looking into this one."}}