Skip to content

Commit c260a75

Browse files
ENGCOM-1928: 14294 - Fixes 'back' functionality after switching a store view. #15961
- Merge Pull Request #15961 from Mobecls/magento2:14294-switching-store-breaks-back-functionality-in-browser - Merged commits: 1. 3feda05
2 parents 2eb6f84 + 3feda05 commit c260a75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Store/view/frontend/templates/switch/languages.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<?php foreach ($block->getStores() as $_lang): ?>
2828
<?php if ($_lang->getId() != $block->getCurrentStoreId()): ?>
2929
<li class="view-<?= $block->escapeHtml($_lang->getCode()) ?> switcher-option">
30-
<a href="#" data-post='<?= /* @noEscape */ $block->getTargetStorePostData($_lang) ?>'>
30+
<a href="<?= $block->escapeUrl($_lang->getCurrentUrl(true)) ?>">
3131
<?= $block->escapeHtml($_lang->getName()) ?>
3232
</a>
3333
</li>

0 commit comments

Comments
 (0)