<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/** @var \Magento\Framework\View\Element\Template $block */
?>
<p><?php echo $block->escapeHtml(__('You have signed out and will go to our homepage in 5 seconds.')) ?></p>
<script>
require([
    "jquery",
    "mage/mage"
], function($){

    $($.mage.redirect("<?php
        echo $this->helper(\Magento\Framework\EscapeHelper::class)
            ->escapeJs($block->escapeUrl($block->getUrl())) ?>", "assign", 5000));

});
</script>
