UI: update host to new doc link location (developer.hashicorp.com/) (#18374)
* change host for doc link * add todo to LearnLink * add changelog
This commit is contained in:
parent
5715cc9e54
commit
d91e69d183
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:improvement
|
||||||
|
ui: update DocLink component to use new host url: developer.hashicorp.com
|
||||||
|
```
|
|
@ -13,7 +13,7 @@ import ExternalLink from './external-link';
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export default class DocLinkComponent extends ExternalLink {
|
export default class DocLinkComponent extends ExternalLink {
|
||||||
host = 'https://www.vaultproject.io';
|
host = 'https://developer.hashicorp.com';
|
||||||
|
|
||||||
get href() {
|
get href() {
|
||||||
return `${this.host}${this.args.path}`;
|
return `${this.host}${this.args.path}`;
|
||||||
|
|
|
@ -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 {
|
export default class LearnLinkComponent extends ExternalLink {
|
||||||
host = 'https://learn.hashicorp.com';
|
host = 'https://learn.hashicorp.com';
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,8 @@ module('Integration | Component | form-field-label', function (hooks) {
|
||||||
assert.dom('a').doesNotExist('docLink hidden when not provided');
|
assert.dom('a').doesNotExist('docLink hidden when not provided');
|
||||||
this.set('docLink', '/doc/path');
|
this.set('docLink', '/doc/path');
|
||||||
assert.dom('.sub-text').includesText('See our documentation for help', 'Doc link text renders');
|
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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue