{"action":"created","issue":{"url":"https://api.github.com/repos/wurmlab/sequenceserver/issues/315","repository_url":"https://api.github.com/repos/wurmlab/sequenceserver","labels_url":"https://api.github.com/repos/wurmlab/sequenceserver/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/wurmlab/sequenceserver/issues/315/comments","events_url":"https://api.github.com/repos/wurmlab/sequenceserver/issues/315/events","html_url":"https://github.com/wurmlab/sequenceserver/issues/315","id":183010451,"number":315,"title":"Adding links to search hits, \"_blank\" page","user":{"login":"fikipollo","id":11427394,"avatar_url":"https://avatars.githubusercontent.com/u/11427394?v=3","gravatar_id":"","url":"https://api.github.com/users/fikipollo","html_url":"https://github.com/fikipollo","followers_url":"https://api.github.com/users/fikipollo/followers","following_url":"https://api.github.com/users/fikipollo/following{/other_user}","gists_url":"https://api.github.com/users/fikipollo/gists{/gist_id}","starred_url":"https://api.github.com/users/fikipollo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fikipollo/subscriptions","organizations_url":"https://api.github.com/users/fikipollo/orgs","repos_url":"https://api.github.com/users/fikipollo/repos","events_url":"https://api.github.com/users/fikipollo/events{/privacy}","received_events_url":"https://api.github.com/users/fikipollo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-14T10:00:08Z","updated_at":"2016-10-14T11:51:23Z","closed_at":null,"body":"Hi there,\r\n\r\nFirst congratz for the nice tool, it works like a charm!!\r\n\r\nI'm adding some custom links  at the results page for local databases installed in my system. \r\nFollowing the documentation at http://www.sequenceserver.com/doc/#plugin, I added in the links.rb file:\r\n\r\n    def mrs\r\n      url = \"/mrs/search?db=all&q=#{id}\"\r\n      {\r\n        :order => 3,\r\n        :title => 'MRS',\r\n        :url   => url,\r\n        :icon  => 'fa-external-link'\r\n      }\r\n    end\r\n\r\nThat works but the link is opened in the same tab and the blast results are lost.\r\nIs it possible to open the external resource in a new tab or window?\r\n\r\nthanks!\r\n\r\nRafa"},"comment":{"url":"https://api.github.com/repos/wurmlab/sequenceserver/issues/comments/253779783","html_url":"https://github.com/wurmlab/sequenceserver/issues/315#issuecomment-253779783","issue_url":"https://api.github.com/repos/wurmlab/sequenceserver/issues/315","id":253779783,"user":{"login":"vivekiitkgp","id":3218617,"avatar_url":"https://avatars.githubusercontent.com/u/3218617?v=3","gravatar_id":"","url":"https://api.github.com/users/vivekiitkgp","html_url":"https://github.com/vivekiitkgp","followers_url":"https://api.github.com/users/vivekiitkgp/followers","following_url":"https://api.github.com/users/vivekiitkgp/following{/other_user}","gists_url":"https://api.github.com/users/vivekiitkgp/gists{/gist_id}","starred_url":"https://api.github.com/users/vivekiitkgp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivekiitkgp/subscriptions","organizations_url":"https://api.github.com/users/vivekiitkgp/orgs","repos_url":"https://api.github.com/users/vivekiitkgp/repos","events_url":"https://api.github.com/users/vivekiitkgp/events{/privacy}","received_events_url":"https://api.github.com/users/vivekiitkgp/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T11:51:23Z","updated_at":"2016-10-14T11:51:23Z","body":"Hi @fikipollo \r\n\r\nSequenceserver automatically ensures that _external links_ are opened in new tab. You can see the relevant code [here](https://github.com/wurmlab/sequenceserver/blob/1.0.x/lib/sequenceserver/routes.rb#L62). The reason your results do not open in new tab is because the URI you have, is a relative one. By external, we assumed something that is not present on the same domain.\r\n\r\nTo fix this, you can simply change the current URI to a full URI (http://...). Let us know if it works!"}}
{"actor":{"display_login":"vivekiitkgp"}}