Skip to content

Commit 368a82b

Browse files
update - source is removed from fragment query parameters
1 parent 06007f0 commit 368a82b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,12 @@ export class Core extends Module {
186186
private static prepareQueryString(fragmentAttributes: Record<string, string>) {
187187
const attributes = Object.assign(window.location.search.slice(1).split('&').reduce((dict: { [name: string]: string }, i) => {
188188
const [key, value] = i.split('=');
189-
if (typeof value !== "undefined" && key !== "source") {
189+
if (typeof value !== "undefined") {
190190
dict[key] = value;
191191
}
192192
return dict;
193193
}, {}), fragmentAttributes);
194-
194+
delete attributes.source;
195195
return Object.keys(attributes).reduce((query: string, key: string) => `${query}&${key}=${attributes[key]}`, '?__renderMode=stream');
196196
}
197197

0 commit comments

Comments
 (0)