This tutorial explains how to fix the remove item magento cart redirects homepage error.When removing an item from the cart using the remove button in the checkout page it redirects to the homepage.The error is due the redirect function in the cartcontroller.php file
The error can be fix by rewriting the core files. In magento for editing the core files we need to create a module.Please create the following files.
This tutorial explains how to edit remote files phpstorm. Using phpstorm it is possible to edit the remote files without downloading the files. This will automatically upload the files to the server on save.
Here it shows how to connect to the remote sever using the FTP details.Please follow the tutorial for step by step explanation.