Function for get cat path

This will be used in breadcrumbs