File tree Expand file tree Collapse file tree 2 files changed +23
-9
lines changed
app/code/Magento/Customer/view/frontend Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 77/** @var \Magento\Framework\View\Element\Template $block */
88?>
99<p><?= $ block ->escapeHtml (__ ('You have signed out and will go to our homepage in 5 seconds. ' )) ?> </p>
10- <script>
11- require([
12- "jquery",
13- "mage/mage"
14- ], function($){
15-
16- $($.mage.redirect("<?= $ block ->escapeJs ($ block ->escapeUrl ($ block ->getUrl ())) ?> ", "assign", 5000));
17-
18- });
10+ <script type="text/x-magento-init">
11+ {
12+ "*": {
13+ "Magento_Customer/js/logout-redirect": {
14+ "url": "<?= $ block ->escapeJs ($ block ->escapeUrl ($ block ->getUrl ())) ?> "
15+ }
16+ }
17+ }
1918</script>
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright © Magento, Inc. All rights reserved.
3+ * See COPYING.txt for license details.
4+ */
5+
6+ define ( [
7+ 'jquery' ,
8+ 'mage/mage'
9+ ] , function ( $ ) {
10+ 'use strict' ;
11+
12+ return function ( data ) {
13+ $ ( $ . mage . redirect ( data . url , 'assign' , 5000 ) ) ;
14+ } ;
15+ } ) ;
You can’t perform that action at this time.
0 commit comments