defaultURL formatter

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.

Examples

When inserting dynamic hyperlinks, chain the :defaultURL formatter to the marker, such as:

{d.url:defaultURL('https://carbone.io')}

It is possible to pass another marker as an argument:

{d.url:defaultURL(.urlOnError)}

When using the :html formatter, place the :defaultURL before:

{d.content:defaultURL(.urlOnError):html}

Last updated