Browse Source

Check if external URL is reachable before inserting fragments from there

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.3-alpha
Pekka Helenius 4 years ago
parent
commit
0094dc831f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      bookstore/src/main/resources/templates/fragments/footerpart.html

+ 5
- 1
bookstore/src/main/resources/templates/fragments/footerpart.html View File

@ -10,8 +10,12 @@ target domain environment. Once fully implemented, footer relative URLs should w
*/--> */-->
<div style="margin-top: 400px;"> <div style="margin-top: 400px;">
<p>Dev note: This footer is fetched from an external URL and presented only for demonstration purposes.</p> <p>Dev note: This footer is fetched from an external URL and presented only for demonstration purposes.</p>
<footer th:replace="https://fjordtek.com/ :: footer"></footer>
<footer th:replace="${@ExternalUrl.getUrl('https://fjordtek.com/')} ? ~{https://fjordtek.com/ :: footer} : _"></footer>
<!--/* [//div[@id='footer']]" */-->
</div> </div>
<link rel="stylesheet" type="text/css" href="https://fjordtek.com/css/style.css"> <link rel="stylesheet" type="text/css" href="https://fjordtek.com/css/style.css">


Loading…
Cancel
Save