You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
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
Copy file name to clipboardExpand all lines: guides/v2.1/javascript-dev-guide/javascript/js_init.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ redirect_from:
10
10
11
11
This topic describes different ways to call and initialize JavaScript in Magento 2:
12
12
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.
14
14
- Call Javascript components that require initialization in Javascript (`.js`) files.
15
15
16
16
We strongly recommend that you use the described approaches and do not add inline {% glossarytooltip 312b4baf-15f7-4968-944e-c814d53de218 %}JavaScript{% endglossarytooltip %}.
To call a widget inJS 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 inJS 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):
0 commit comments