{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/2834","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/2834/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/2834/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/2834/events","html_url":"https://github.com/ampproject/amphtml/issues/2834","id":146632364,"number":2834,"title":"[amp-mustache] Why the link target is only blank?","user":{"login":"juniorneo2","id":1616753,"avatar_url":"https://avatars.githubusercontent.com/u/1616753?v=3","gravatar_id":"","url":"https://api.github.com/users/juniorneo2","html_url":"https://github.com/juniorneo2","followers_url":"https://api.github.com/users/juniorneo2/followers","following_url":"https://api.github.com/users/juniorneo2/following{/other_user}","gists_url":"https://api.github.com/users/juniorneo2/gists{/gist_id}","starred_url":"https://api.github.com/users/juniorneo2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juniorneo2/subscriptions","organizations_url":"https://api.github.com/users/juniorneo2/orgs","repos_url":"https://api.github.com/users/juniorneo2/repos","events_url":"https://api.github.com/users/juniorneo2/events{/privacy}","received_events_url":"https://api.github.com/users/juniorneo2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Question","name":"Type: Question","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"dvoytenko","id":726049,"avatar_url":"https://avatars.githubusercontent.com/u/726049?v=3","gravatar_id":"","url":"https://api.github.com/users/dvoytenko","html_url":"https://github.com/dvoytenko","followers_url":"https://api.github.com/users/dvoytenko/followers","following_url":"https://api.github.com/users/dvoytenko/following{/other_user}","gists_url":"https://api.github.com/users/dvoytenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dvoytenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvoytenko/subscriptions","organizations_url":"https://api.github.com/users/dvoytenko/orgs","repos_url":"https://api.github.com/users/dvoytenko/repos","events_url":"https://api.github.com/users/dvoytenko/events{/privacy}","received_events_url":"https://api.github.com/users/dvoytenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-07T13:51:12Z","updated_at":"2016-04-07T17:32:08Z","closed_at":null,"body":"I have a list and need that the link target be \"_self\". The script change the link target to \"_blank\". Why does it do this?\r\n\r\nCode\r\n\r\n<div style=\"background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;\"><table><tr><td><pre style=\"margin: 0; line-height: 125%\"> 1\r\n 2\r\n 3\r\n 4\r\n 5\r\n 6\r\n 7\r\n 8\r\n 9\r\n10\r\n11\r\n12\r\n13\r\n14\r\n15\r\n16\r\n17\r\n18\r\n19\r\n20\r\n21\r\n22\r\n23</pre></td><td><pre style=\"margin: 0; line-height: 125%\"><span style=\"color: #007700\">&lt;amp</span><span style=\"color: #0000CC\">-list</span><span style=\"color: #007700\">&gt;</span>\r\n   <span style=\"color: #007700\">&lt;template</span> <span style=\"color: #0000CC\">type=</span><span style=\"background-color: #fff0f0\">&quot;amp-mustache&quot;</span><span style=\"color: #007700\">&gt;</span>\r\n      {{#isFirst}}\r\n      <span style=\"color: #007700\">&lt;div</span> <span style=\"color: #0000CC\">class=</span><span style=\"background-color: #fff0f0\">&quot;teaser {{fieldCanaisCustom}}&quot;</span><span style=\"color: #007700\">&gt;</span>\r\n         <span style=\"color: #007700\">&lt;div</span> <span style=\"color: #0000CC\">class=</span><span style=\"background-color: #fff0f0\">&quot;mod-teaser&quot;</span><span style=\"color: #007700\">&gt;</span>\r\n            {{#srcImage}}\r\n            <span style=\"color: #007700\">&lt;div</span> <span style=\"color: #0000CC\">class=</span><span style=\"background-color: #fff0f0\">&quot;teaser-image&quot;</span><span style=\"color: #007700\">&gt;</span>\r\n               <span style=\"color: #007700\">&lt;a</span> <span style=\"color: #0000CC\">href=</span><span style=\"background-color: #fff0f0\">&quot;{{link}}&quot;</span> <span style=\"color: #0000CC\">target=</span><span style=\"background-color: #fff0f0\">&quot;_self&quot;</span><span style=\"color: #007700\">&gt;</span>\r\n                  <span style=\"color: #007700\">&lt;amp</span><span style=\"color: #0000CC\">-img</span> <span style=\"color: #0000CC\">src=</span><span style=\"background-color: #fff0f0\">&quot;{{srcImage}}&quot;</span> <span style=\"color: #0000CC\">width=</span><span style=\"background-color: #fff0f0\">&quot;120&quot;</span> <span style=\"color: #0000CC\">height=</span><span style=\"background-color: #fff0f0\">&quot;120&quot;</span><span style=\"color: #007700\">/&gt;</span>\r\n               <span style=\"color: #007700\">&lt;/a&gt;</span>\r\n            <span style=\"color: #007700\">&lt;/div&gt;</span>\r\n            {{/srcImage}}\r\n            <span style=\"color: #007700\">&lt;h3</span> <span style=\"color: #0000CC\">class=</span><span style=\"background-color: #fff0f0\">&quot;versal&quot;</span><span style=\"color: #007700\">&gt;</span>{{versal}}<span style=\"color: #007700\">&lt;/h3&gt;</span>\r\n            <span style=\"color: #007700\">&lt;h4</span> <span style=\"color: #0000CC\">class=</span><span style=\"background-color: #fff0f0\">&quot;title&quot;</span><span style=\"color: #007700\">&gt;&lt;a</span> <span style=\"color: #0000CC\">href=</span><span style=\"background-color: #fff0f0\">&quot;{{link}}&quot;</span> <span style=\"color: #0000CC\">target=</span><span style=\"background-color: #fff0f0\">&quot;_self&quot;</span><span style=\"color: #007700\">&gt;</span>{{title}}<span style=\"color: #007700\">&lt;/a&gt;&lt;/h4&gt;</span>\r\n            <span style=\"color: #007700\">&lt;div</span> <span style=\"color: #0000CC\">class=</span><span style=\"background-color: #fff0f0\">&quot;clear-both&quot;</span><span style=\"color: #007700\">&gt;&lt;/div&gt;</span>\r\n         <span style=\"color: #007700\">&lt;/div&gt;</span>\r\n      <span style=\"color: #007700\">&lt;/div&gt;</span>\r\n      {{/isFirst}}\r\n   <span style=\"color: #007700\">&lt;/template&gt;</span>\r\n   <span style=\"color: #007700\">&lt;div</span> <span style=\"color: #0000CC\">overflow</span> <span style=\"color: #0000CC\">role=</span><span style=\"background-color: #fff0f0\">button</span> <span style=\"color: #0000CC\">aria-label=</span><span style=\"background-color: #fff0f0\">&quot;Show more&quot;</span> <span style=\"color: #0000CC\">class=</span><span style=\"background-color: #fff0f0\">&quot;list-overflow&quot;</span><span style=\"color: #007700\">&gt;</span>\r\n      Show More\r\n   <span style=\"color: #007700\">&lt;/div&gt;</span>\r\n<span style=\"color: #FF0000; background-color: #FFAAAA\">&lt;</span>/amp-list&gt;\r\n</pre></td></tr></table></div>\r\n"},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/207015953","html_url":"https://github.com/ampproject/amphtml/issues/2834#issuecomment-207015953","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/2834","id":207015953,"user":{"login":"juniorneo2","id":1616753,"avatar_url":"https://avatars.githubusercontent.com/u/1616753?v=3","gravatar_id":"","url":"https://api.github.com/users/juniorneo2","html_url":"https://github.com/juniorneo2","followers_url":"https://api.github.com/users/juniorneo2/followers","following_url":"https://api.github.com/users/juniorneo2/following{/other_user}","gists_url":"https://api.github.com/users/juniorneo2/gists{/gist_id}","starred_url":"https://api.github.com/users/juniorneo2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juniorneo2/subscriptions","organizations_url":"https://api.github.com/users/juniorneo2/orgs","repos_url":"https://api.github.com/users/juniorneo2/repos","events_url":"https://api.github.com/users/juniorneo2/events{/privacy}","received_events_url":"https://api.github.com/users/juniorneo2/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T17:32:08Z","updated_at":"2016-04-07T17:32:08Z","body":"Ok! Thank you! @dvoytenko @jridgewell "}}