Magento 2.x – Stop checkout success page redirection after refresh for testing


You can stop checkout success page redirection after refresh page, for testing purposes, with this below code:

File: 

Comment Out Line No : 22

Now you will be able to refresh and debug success page, after that, remember to turn back the comment.