From 6af113bab4f1763011608401d997c6036a475c4b Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Mon, 2 Oct 2017 13:41:22 +0200
Subject: [PATCH] fix link click when editing socials links

---
 www/plugins/es/templates/registry/view_record.html | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/www/plugins/es/templates/registry/view_record.html b/www/plugins/es/templates/registry/view_record.html
index 353ddcbf1..94327f3b0 100644
--- a/www/plugins/es/templates/registry/view_record.html
+++ b/www/plugins/es/templates/registry/view_record.html
@@ -121,8 +121,7 @@
                ng-class="{'ion-bookmark': social.type == 'other', 'ion-link': social.type == 'web', 'ion-email': social.type == 'email'}"></i>
             <p ng-if="social.type && social.type != 'web'">{{social.type}}</p>
             <h2>
-              <a href="{{social.url}}" ng-if="social.type != 'email'" target="_blank">{{social.url}}</a>
-              <a href="mailto:{{social.url}}" ng-if="social.type == 'email'">{{social.url}}</a>
+              <a ng-click="openLink($event, social.url, social.type)">{{social.url}}</a>
             </h2>
           </ion-item>
         </ng-if>
-- 
GitLab