Skip to content

Commit 039a851

Browse files
committed
Minor update to clear up confusion around links being tacked on to the primary domain as if they are a relative path
1 parent 89a9f5b commit 039a851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/includes/_methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Field Name | Purpose | Example Value(s) | Field Format
9797
-------------- | -------------- | -------------- | --------------
9898
`type` | The style of CTA that should be inserted. | `default`, `primary` | String
9999
`classes` | A space delimited list of class names to add to the CTA. | `custom-class1 custom-class2` | String
100-
`href` | The URL to access when the CTA is clicked. | `https://www.yourdomain.com/` | String
100+
`href` | The URL to access when the CTA is clicked. Must begin with `https://`. | `https://www.yourdomain.com/` | String
101101
`target` | The link target. | `_blank`, `_self` | String
102102
`onclick` | A function to attach as a click handler to the CTA. | `window.MyIntegation.clickFunction` | Function
103103
`text` | An object supplying text for the CTA in one or more languages. `en_US` is required at minimum. `fr_CA` is highly recommended. | See usage example | Object
@@ -346,7 +346,7 @@ The available options for the `button` type are as follows:
346346

347347
Field Key | Example Value | Field Format | Purpose
348348
-------------- | -------------- | -------------- | --------------
349-
`href` | `https://www.google.com/` | `String` | The link URL.
349+
`href` | `https://www.google.com/` | `String` | The link URL. Must begin with `https://`.
350350
`text` | `See functional example.` | `Object` | The localized button text object.
351351
`classes` | `btn btn-primary` | `String` | Classes to place on the link element.
352352
`style` | `border: 2px solid #c00` | `String` | Inline styles to place on the link element.

0 commit comments

Comments
 (0)