From 656e2e52f27b7a9279e7fcc9fe0e9e041b9e8645 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Sun, 17 Sep 2017 21:05:20 +0200
Subject: [PATCH] Bodies: use websiteUrl filter for links

---
 detailsBody.html | 4 ++--
 popupBody.html   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/detailsBody.html b/detailsBody.html
index 178d441..303db55 100644
--- a/detailsBody.html
+++ b/detailsBody.html
@@ -18,7 +18,7 @@
   <i class="fa fa-globe" aria-hidden="true"></i>
   <span class='key'>{{ keyTrans('website') }}:</span>
   <span class='value'>
-    <a target='_blank' href='{{ tags.website }}'>{{ tags.website }}</a>
+    <a target='_blank' href='{{ tags.website|websiteUrl }}'>{{ tags.website }}</a>
   </span>
 </li>
 {% endif %}
@@ -28,7 +28,7 @@
   <i class="fa fa-globe" aria-hidden="true"></i>
   <span class='key'>{{ keyTrans('website') }}:</span>
   <span class='value'>
-    <a target='_blank' href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a>
+    <a target='_blank' href='{{ attribute(tags, 'contact:website')|websiteUrl }}'>{{ attribute(tags, 'contact:website') }}</a>
   </span>
 </li>
 {% endif %}
diff --git a/popupBody.html b/popupBody.html
index 5a8bd02..c5e9e9e 100644
--- a/popupBody.html
+++ b/popupBody.html
@@ -18,7 +18,7 @@
   <i class="fa fa-globe" aria-hidden="true"></i>
   <span class='key'>{{ keyTrans('website') }}:</span>
   <span class='value'>
-    <a target='_blank' href='{{ tags.website }}'>{{ tags.website }}</a>
+    <a target='_blank' href='{{ tags.website|websiteUrl }}'>{{ tags.website }}</a>
   </span>
 </li>
 {% endif %}
@@ -28,7 +28,7 @@
   <i class="fa fa-globe" aria-hidden="true"></i>
   <span class='key'>{{ keyTrans('website') }}:</span>
   <span class='value'>
-    <a target='_blank' href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a>
+    <a target='_blank' href='{{ attribute(tags, 'contact:website')|websiteUrl }}'>{{ attribute(tags, 'contact:website') }}</a>
   </span>
 </li>
 {% endif %}