{"action":"opened","issue":{"url":"https://api.github.com/repos/summernote/summernote/issues/1274","labels_url":"https://api.github.com/repos/summernote/summernote/issues/1274/labels{/name}","comments_url":"https://api.github.com/repos/summernote/summernote/issues/1274/comments","events_url":"https://api.github.com/repos/summernote/summernote/issues/1274/events","html_url":"https://github.com/summernote/summernote/issues/1274","id":100552473,"number":1274,"title":"Links added from selected text are broken if they have no URI schema protocol","user":{"login":"mstred","id":1061950,"avatar_url":"https://avatars.githubusercontent.com/u/1061950?v=3","gravatar_id":"","url":"https://api.github.com/users/mstred","html_url":"https://github.com/mstred","followers_url":"https://api.github.com/users/mstred/followers","following_url":"https://api.github.com/users/mstred/following{/other_user}","gists_url":"https://api.github.com/users/mstred/gists{/gist_id}","starred_url":"https://api.github.com/users/mstred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstred/subscriptions","organizations_url":"https://api.github.com/users/mstred/orgs","repos_url":"https://api.github.com/users/mstred/repos","events_url":"https://api.github.com/users/mstred/events{/privacy}","received_events_url":"https://api.github.com/users/mstred/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T14:10:13Z","updated_at":"2015-08-12T14:10:13Z","closed_at":null,"body":"I've seen some issues related to anchor link placement (#1037, #1134), but this is such a specific scenario.\r\n\r\n1. User adds a text resembling a URL, but with no [protocol scheme][1] representation (e.g.: \"github.com/summernote\").\r\n2. He or she selects this text and clicks on \"Add Link\" button.\r\n3. Link dialog has the selected text applied to both \"Link Text\" and \"Link URL\" fields\r\n4. Since there's no fix from input content, `href` property from referring `<a>` element has no protocol in it, just like this: `<a href=\"github.com/summernote\">github.com/summernote</a>` \r\n5. User clicks on the added link and it goes to: `http://summernote.org/github.com/summernote`, which is a broken link.\r\n\r\n[1]: https://en.wikipedia.org/wiki/URI_scheme"}}