From a34e97887d930033cbce6ab8ea8aef5071d8c026 Mon Sep 17 00:00:00 2001 From: Bastien Date: Mon, 19 Nov 2018 17:18:07 +0100 Subject: [PATCH] Static page - Show External Link if content is empty --- app/scripts/static-pages/staticPagesFileSystemService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/static-pages/staticPagesFileSystemService.js b/app/scripts/static-pages/staticPagesFileSystemService.js index b535094b..a8a07741 100644 --- a/app/scripts/static-pages/staticPagesFileSystemService.js +++ b/app/scripts/static-pages/staticPagesFileSystemService.js @@ -71,7 +71,7 @@ geotrekStaticPages.service('staticPagesFileSystemService', [ staticPages.push({ text: page.title, title: page.title, - description: page.content + description: page.content && page.content.length > 0 && page.content !== "null" ? page.content : "" + page.external_url + "" }); } });