Fully Qualified Link in Rich Text Content

Introduction

Goal

Render links in rich text content as fully qualified URLs.

Background

Links in rich text content are rendered as relative URLs by default. By specifying the attribute fullyQualifiedLinks in the <hst:html> tag, all links ( href and src) are rewritten to fully qualified URLs including the scheme, hostname and, if visible, the portnumber.

Example

JSP

<hst:html hippohtml="${requestScope.document.html}" fullyQualifiedLinks="true" />

Freemarker

<@hst.html hippohtml=document.html fullyQualifiedLinks=true />
Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?