If a dynamic hyperlink or a HTML anchor tag is injected into a report and the URL verification fails, the formatter :defaultURL
can be used to replace the default error URL.
If the provided URL is not valid, it is replaced by https://carbone.io/documentation.html#hyperlink-validation
.
When inserting dynamic hyperlinks, chain the :defaultURL
formatter to the marker, such as:
It is possible to pass another marker as an argument:
When using the :html
formatter, place the :defaultURL
before:
Hyperlinks can be applied dynamically to elements (texts, images, tables, list) for DOCX
, ODT
, ODS
, and XLSX
documents. Right-click the element and select "hyperlinks" to insert the marker.
example: reduce {d.url}
to d.url
; if http://
appears before d.url
, the hyperlink works
Before injecting hyperlinks dynamically on reports, the URL is verified whether it has a valid format.
If the provided URL is not valid, it is replaced by https://carbone.io/documentation.html#hyperlink-validation
.
expected behavior: text editor automatically replaces curly braces with special characters: %256B
a static URL and a URL coming from a marker, e.g., https://carbone.io{d.url}
, cannot be inserted together
https://carbone.io
is removed automatically and only {d.url}
is kept
do not write the marker with curly braces in XLSX
files
required: a root domain of length between 2 and 256
required: a top level domain like .com
, .org
, .fr
, or other
optional: a protocol, either http://
or https://
. If it doesn't exist the protocol https://
is added