I would like to change the default functionality of the accordion widget to show category information. For example, if a category has subcategories, then the accordion will open as usual and list the subcategories. However, if a category does not have subcategories, is it possible to prevent the accordion opening up an empty content pane and go directly to a link that I specify? ie load up a page that shows the products for that category.
I've created a default accordion and inside one of the content panes I have an anchor that links to another page. However, when I click on the link, the event seems to be consumed and hence it doesn't open the intended page. Would anyone know what's causing this problem?