When editing a Search Query, why doesn't Magento allow the Redirect URL to be Relative Paths like /section/subsection
or /best-product
. It enforces the full URL which is kind of pain. How would you change this and is there any reasons to consider not changing this?
Magento Documents its Search Term Redirect Functionality.
Best Answer
A quick test by removing the JS validation
validate-url
seemed to work without any issues for me, so with that in mind:/app/code/core/Mage/Adminhtml/Block/Catalog/Search/Edit/Form.php:
In function
_prepareForm()
Change this:
To this:
NOTE: obviously do not just edit core but extend the Adminhtml Block.