Fix for #4314 Wrong URL when search sub-category by tag if SEF is on