magento2 – Magento 2: How to redirect on custom phtml file from a module within module


I want to redirect to Success.phtml file from this controller

This is my controller code:

<?php

namespace SoftadroitPrescriptionControllerIndex;

use MagentoFrameworkControllerResultFactory;
use MagentoFrameworkAppObjectManager;

class Save extends MagentoFrameworkAppActionAction
{    
    protected $_pageFactory;

     public function __construct(
        MagentoFrameworkAppActionContext $context,
        MagentoFrameworkViewResultPageFactory $pageFactory,
        MagentoCheckoutModelCartFactory $cartFactory
        )
    {
        $this->_pageFactory = $pageFactory;
        $this->cartFactory = $cartFactory;
        return parent::__construct($context);
    }
    
    public function execute()
    {
        $post = $this->getRequest()->getPost();
        
        /* echo "<pre>";
        print_r($post);
        die(); */
        
        if (!empty($post)) {
        foreach($post('name') as $key => $name) {
            $age    = $post('age')($key);
            $weight = $post('weight')($key);
            $height = $post('height')($key);
            $gender = $post('subject_gender')($key);
            $product_id = $post('product_id')($key);
            $customer_id = $post('customer_id')($key);
        
            $model = $this->_objectManager->create('SoftadroitPrescriptionModelPrescription');           
            
            $model->setData((
                    "name" => $name,
                    "age" => $age,
                    "weight" => $weight,
                    "height" => $height,
                    "gender" => $gender,
                    "product_id" => $product_id,
                    "customer_id" => $customer_id
                    ));

             $msg ="";
             $data =  $model->save();
            if($data != ''){ 
                //$model->save(); 
                $this->messageManager->addSuccessMessage('Thanks your form is submitted successfully!');
            }else{ 
                $this->messageManager->addSuccessMessage('Error in submitting data. Please contact on this email!'); 
            } 
}
            echo $msg; 

            $cartObject = $this->cartFactory->create()->truncate();
            $cartObject->saveQuote();
            
            
            // Redirect to your form page (or anywhere you want...)
            $resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
            $resultRedirect->setUrl('/prescription/index');
            //$resultRedirect->setPath('checkout/onepage/successs');
            return $resultRedirect;
        }
       
        $this->_view->loadLayout();
        $this->_view->renderLayout();
    }
}

And this is my Success.phtml file in template:

<?php /** @var $block MagentoCheckoutBlockOnepageSuccess */ ?>
<div class="checkout-success">
            <p><?= echo escapeHtml(__('Your order has been placed successfully.'))?></p>
        
            <p><?= echo escapeHtml(__('We'll email you an order confirmation with details and tracking info.')) ?></p>

    <div class="actions-toolbar">
        <div class="primary">
            <a class="action primary continue" href="<?= echo $baseUrl = $store->getBaseUrl(); ?>"><span><?= echo escapeHtml(__('Continue Shopping')) ?></span></a>
        </div>
    </div>
</div>

<style>
.sidebar.sidebar-additional, .sidebar.sidebar-main {
    position: relative;
    display: none;
}
</style>

I have to create any other file? or this will work directly?