]> cat aescling's git repositories - mastodon.git/commitdiff
Fix target blank on "open_in_web" link (#1612)
authorDavid Libeau <DavidLibeau@users.noreply.github.com>
Wed, 12 Apr 2017 17:09:58 +0000 (19:09 +0200)
committerIsabelle Knott <isabelle@blackle-mori.com>
Wed, 12 Apr 2017 17:09:58 +0000 (13:09 -0400)
When you render the "embed" view in an iframe, this link bugs when clicked, due to missing target blank.

app/views/stream_entries/_detailed_status.html.haml

index c42e6614a2c609622e70a41d1090c4c84f7a16f8..466e0dd5ae151059b3e6ae71d467a0db6fed865b 100644 (file)
@@ -49,4 +49,4 @@
 
     - if user_signed_in?
       ยท
-      = link_to t('statuses.open_in_web'), web_url("statuses/#{status.id}"), class: 'open-in-web-link'
+      = link_to t('statuses.open_in_web'), web_url("statuses/#{status.id}"), class: 'open-in-web-link', target: '_blank'