I have the following categories
- Tech (1 entry: case A) 1.1 Apps 1.2 Software (2 entries: case B)
- Fashion 2.1 Clothing (1 entry: case C) 2.2 Shoes ...
When using {{ entry.categories.one().url }}, it always show the parent category (Tech, Fashion). In case A, the category is Tech. In case B and C, I want to show the child categories. Here are the expected category URL of an entry:
- example.com/tech
- example.com/software
- example.com/clothing
Do you have any simple way to display the final category? The final category is a parent or child one. Thanks for your answer!