Hello everyone,
I'm trying to optimize the URLs on my site and I've run into a problem with the listing URLs.
In the permalinks settings, I've set the Listing URL to {CATEGORIES}/{ITEM_TITLE}-{ITEM_CITY}-{ITEM_ID}. The goal was to display the main category in the URL.
However, when I change the configuration to {CATEGORY}/{ITEM_TITLE}-{ITEM_CITY}-{ITEM_ID}, the final URL is generated incorrectly: mysite//{ITEM_TITLE}-{ITEM_CITY}-{ITEM_ID}. As you can see, the main category is missing and a double slash is displayed.
I've tried several solutions, but I haven't been able to solve the problem. Does anyone have any suggestions on how to correctly include the main category in the URL, while avoiding the double slash?
Thanks in advance for the help!