Skip to content

Commit f41ae05

Browse files
committed
hotfix: fix broken open in new tab functionality by sending the missing Redux update when the URL changes
1 parent ee0f2ec commit f41ae05

File tree

1 file changed

+4
-0
lines changed
  • packages/uikit-workshop/src/scripts/lit-components/pl-viewport

1 file changed

+4
-0
lines changed

packages/uikit-workshop/src/scripts/lit-components/pl-viewport/pl-viewport.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,10 @@ class IFrame extends BaseLitComponent {
523523
addressReplacement
524524
);
525525

526+
const currentUrl = urlHandler.getFileName(currentPattern);
527+
if (currentUrl) {
528+
store.dispatch(updateCurrentUrl(currentUrl));
529+
}
526530
store.dispatch(updateCurrentPattern(currentPattern));
527531
} catch (error) {
528532
console.log(error);

0 commit comments

Comments
 (0)