You need to go as per the docs. If you want to customize you can do that but mostly you need to follow the controllers variable as well. So it will be good if you take reference from shop or velocity package.
@davinderamr you can find the "get_url_path_of_category" in your Database,
Check the functions section and there you can see the details.
Please check the screenshot which I am attaching.
alt text