We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0770da commit 3ae7427Copy full SHA for 3ae7427
1 file changed
apps/simulateurs/src/lib/iframe.ts
@@ -161,7 +161,16 @@ const createAkimeoEmbed: CreateAkimeoEmbed = function createAkimeoEmbed(
161
},
162
);
163
164
- iframe.setAttribute("src", new URL(path, origin).toString());
+ const currentUrl = new URL(window.location.href);
165
+ const url = new URL(path, origin);
166
+
167
+ currentUrl.searchParams.forEach((value, key) => {
168
+ if (!url.searchParams.has(key)) {
169
+ url.searchParams.set(key, value);
170
+ }
171
+ });
172
173
+ iframe.setAttribute("src", url.toString());
174
175
container.appendChild(iframe);
176
};
0 commit comments