Hi,
I have a very strange issue with Barber theme. It I set direct link to articles (not menu links), URL structure is very weird (eg. /en/component/content/article/1st-prologue-of-the-authors?catid=17:the-show&Itemid=222) and leads to 404 error. By the way, category ID is OK, but item ID is 43 and not 222. If I preview the article with the excellent Better Preview plugin from Regular Labs, URL is /en/?option=com_content&view=article&id=43&catid=17&lang=en-GB and it can be seen.
Let's do another test. I created 2 articles, one "Test EN" in English and another one, "Test FR" in French. They are associated as translations of each other. If I have a look at "Test EN" with URL /en/test?view=article&id=109&catid=2 and have a look on the head code, there is
<link rel="canonical" href="/en/test?view=article&id=109:test-en&catid=2">
<link href="/fr/component/content/article/test-fr?catid=20&Itemid=223" rel="alternate" hreflang="fr-FR">
<link href="/en/component/content/article/test-en?catid=2&Itemid=222" rel="alternate" hreflang="en-GB">
and of course, switch from EN to FR causes a 404 error.
Let's go now to create menu items for "Test EN" and "Test FR". URLs are now like /en/test-en and links for languages are OK. But of course, it's not an option to set menu items for every article. So, let's try to set up a category menu link. Error, even with /en/category-test or with preview link /en/?option=com_content&view=category&id=2&Itemid=325. Error message is "0 Attempt to modify property "params" on null" and in console, error 500. Is it a global error or a template error? Let's assign this menu item to default Protostar, and that's it, everything is OK, all URL of articles in articles links are clean, so it's definitely an issue caused by Barber template (or more probably by Helix).
So, I found a way around the problem, but it's not very satisfiying because the issue is still there. Furthermore, if I set link within a page before doing this trick (with JCE and choosing "content" links), link URL is system URL and not clean URL. If I set link after that, URLs are clean. Now, I have to re-edit all links :-(
Do you have an explanation to this? And and idea to how solve it?
Best regards.
PS : Joomla! 3.10.11 and all extensions and templates up to date.