Magento. Redirect from category with no products to parent category.
A simple example of a redirect to a parent category from category without products. Use observer and watching the event core_block_abstract_to_html_before
.
Everything that’s needed:
Declare observer in config.xml
And add tis methods to ../Models/Observer.php