Skip to content

Commit

Permalink
Static page - Show External Link if content is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien committed Nov 19, 2018
1 parent fd37842 commit a34e978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/static-pages/staticPagesFileSystemService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : "<a href='" + page.external_url+"'>" + page.external_url + "<a/>"
});
}
});
Expand Down

0 comments on commit a34e978

Please sign in to comment.