Skip to content

Commit 245c805

Browse files
update doc about default param
1 parent 624499f commit 245c805

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

content/extensions/ui-extensions.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -490,17 +490,18 @@ Examples:
490490
- `https://www.google.com/search?q=%name%`
491491
- `https://yourwebsite.com/%sku%`
492492

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.
495495

496496
For example, when `url` is `https://customerwebsite.com/iframe/`, the called URL is `https://customerwebite.com/iframe/?paramA=valueA&paramB=valueB`
497497

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:
502499
- `user[username]`
503500
- `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`
504505

505506
::: warning
506507
**Important security notice**
@@ -518,7 +519,7 @@ For `pim.product.tab` position, these parameters are sent:
518519
- `product[uuid]`
519520
- `product[identifier]`
520521

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:
522523
- `product[code]`
523524

524525
For `pim.category.tab` position, this parameter is sent:

0 commit comments

Comments
 (0)