Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 1159ecc

Browse files
magesanjayjeff-matthews
authored andcommitted
Update link as current Devdoc Magento version (#4297)
* Update link as current Devdoc Magento version * update constant for url in V2.1 * Apply suggestions from code review Slash Added in URL Co-Authored-By: magesanjay <[email protected]> * Apply suggestions from code review Co-Authored-By: magesanjay <[email protected]> * Update path urls * Update link url for widget
1 parent e9dc726 commit 1159ecc

File tree

1 file changed

+2
-2
lines changed
  • guides/v2.1/javascript-dev-guide/javascript

1 file changed

+2
-2
lines changed

guides/v2.1/javascript-dev-guide/javascript/js_init.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ redirect_from:
1010

1111
This topic describes different ways to call and initialize JavaScript in Magento 2:
1212

13-
- Insert a [JavaScript component]({{ site.gdeurl }}javascript-dev-guide/bk-javascript-dev-guide.html#js_terms) in `.phtml` page templates.
13+
- Insert a [JavaScript component]({{ page.baseurl }}/javascript-dev-guide/bk-javascript-dev-guide.html#js_terms) in `.phtml` page templates.
1414
- Call Javascript components that require initialization in Javascript (`.js`) files.
1515

1616
We strongly recommend that you use the described approaches and do not add inline {% glossarytooltip 312b4baf-15f7-4968-944e-c814d53de218 %}JavaScript{% endglossarytooltip %}.
@@ -128,7 +128,7 @@ require([
128128

129129
## Calling JS components requiring initialization in JS files {#js_widget_init}
130130

131-
To call a widget in JS code, use a notation similar to the following ([accordion]({{ site.gdeurl }}frontend-dev-guide/javascript/widget_accordion.html) widget is intiialized on the `[data-role=example]` element as illustration):
131+
To call a widget in JS code, use a notation similar to the following ([accordion]({{ page.baseurl }}/javascript-dev-guide/widgets/widget_accordion.html) widget is intiialized on the `[data-role=example]` element as illustration):
132132

133133
```javascript
134134
$('[data-role=example]').accordion();

0 commit comments

Comments
 (0)