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
Copy file name to clipboardExpand all lines: content/extensions/ui-extensions.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -490,17 +490,18 @@ Examples:
490
490
-`https://www.google.com/search?q=%name%`
491
491
-`https://yourwebsite.com/%sku%`
492
492
493
-
#### Fixed query parameters
494
-
For an [iframe](#iframe) UI extension, with `pim.product.tab`, `pim.sub-product-model.tab`, `pim.product-model.tab` as [position](#position), several parameters are sent by default as SearchParameters in a GET query, so the server knows who is the connected user (insecure) and in which context the iframe is opened.
493
+
#### Default query parameters
494
+
For an [iframe](#iframe) UI extension, several parameters are sent by default as SearchParameters in a GET query, so the server knows who is the connected user (insecure) and in which context the iframe is opened.
495
495
496
496
For example, when `url` is `https://customerwebsite.com/iframe/`, the called URL is `https://customerwebite.com/iframe/?paramA=valueA¶mB=valueB`
497
497
498
-
For all positions except `pim.product-grid.action-bar`, parameters relative to the connected user are sent:
499
-
-`user[catalog_locale]`
500
-
-`user[catalog_scope]`
501
-
-`user[ui_locale]`
498
+
For all positions, parameters relative to the connected user and the extension position are sent:
502
499
-`user[username]`
503
500
-`user[email]`
501
+
-`user[ui_locale]`
502
+
-`user[catalog_locale]` except for `pim.product-grid.action-bar`
503
+
-`user[catalog_scope]` except for `pim.product-grid.action-bar`
504
+
-`position`
504
505
505
506
::: warning
506
507
**Important security notice**
@@ -518,7 +519,7 @@ For `pim.product.tab` position, these parameters are sent:
518
519
-`product[uuid]`
519
520
-`product[identifier]`
520
521
521
-
For `pim.product-model.tab` position, this parameter is sent:
522
+
For `pim.product-model.tab`and `pim.sub-product-model.header`position, this parameter is sent:
522
523
-`product[code]`
523
524
524
525
For `pim.category.tab` position, this parameter is sent:
0 commit comments