diff --git a/changelog/18374.txt b/changelog/18374.txt new file mode 100644 index 000000000..eaa57980d --- /dev/null +++ b/changelog/18374.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: update DocLink component to use new host url: developer.hashicorp.com +``` diff --git a/ui/lib/core/addon/components/doc-link.js b/ui/lib/core/addon/components/doc-link.js index 6b86e15f1..3aebfe82a 100644 --- a/ui/lib/core/addon/components/doc-link.js +++ b/ui/lib/core/addon/components/doc-link.js @@ -13,7 +13,7 @@ import ExternalLink from './external-link'; * */ export default class DocLinkComponent extends ExternalLink { - host = 'https://www.vaultproject.io'; + host = 'https://developer.hashicorp.com'; get href() { return `${this.host}${this.args.path}`; diff --git a/ui/lib/core/addon/components/learn-link.js b/ui/lib/core/addon/components/learn-link.js index 3d4b1564e..003122bf5 100644 --- a/ui/lib/core/addon/components/learn-link.js +++ b/ui/lib/core/addon/components/learn-link.js @@ -13,6 +13,7 @@ import ExternalLink from './external-link'; * */ +// TODO update host to 'https://developer.hashicorp.com' once updated paths are established export default class LearnLinkComponent extends ExternalLink { host = 'https://learn.hashicorp.com'; diff --git a/ui/tests/integration/components/form-field-label-test.js b/ui/tests/integration/components/form-field-label-test.js index cb3a863d7..0598dc843 100644 --- a/ui/tests/integration/components/form-field-label-test.js +++ b/ui/tests/integration/components/form-field-label-test.js @@ -39,6 +39,8 @@ module('Integration | Component | form-field-label', function (hooks) { assert.dom('a').doesNotExist('docLink hidden when not provided'); this.set('docLink', '/doc/path'); assert.dom('.sub-text').includesText('See our documentation for help', 'Doc link text renders'); - assert.dom('a').hasAttribute('href', 'https://www.vaultproject.io' + this.docLink, 'Doc link renders'); + assert + .dom('a') + .hasAttribute('href', 'https://developer.hashicorp.com' + this.docLink, 'Doc link renders'); }); });