joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

Category meta description showing up also as article meta desc, instead of own article meta desc

Open MaghSamana opened this issue 2 years ago • 9 comments

Hello,

not sure if this is a bug or not, but here's it is.

I recently migrated a Joomla 3.10 site into 4.2 (test environment). I noticed a very weird situation with SEO. In Joomla 3.x category meta description showed up normally in the head, and articles under it showed up normally their own meta description in the head.

This is no longer the case: now the category meta desc. appears as a meta desc. of all articles in it, ignoring their own meta desc.

I had noticed this was happening in Joomla 3.x. ONLY with the meta desc. of a menu item (of a category). Then all articles got the menu item's meta desc. But if the category itself had a meta desc. and the menu item meta desc. was empty, all worked well.

Since this is a SEO issue, and it seriously affects articles' own meta, can someone take a look?

System information (as much as possible)

Joomla! 4.2.6 Stable PHP 8.1.14 (Server: Apache)

MaghSamana avatar Jan 18 '23 18:01 MaghSamana

I cant reproduce the problem. Just set a category with a article inside and the metadescription of the article is the one who show up inside the article. Tested with the default template Cassiopedia

carlitorweb avatar Jan 19 '23 00:01 carlitorweb

When the category does not have a menu item, then its articles' meta description shows up normally.

But when there is a menu item for a category (e.g. category blog), then the category's articles get the category's meta description and not their own.

In Joomla 3 this does not happen. Only if you set a meta description in the menu item for a category, then and only then the articles get the menu's meta description. If you leave the menu meta description blank and only have a category meta description, then the articles show their own meta description.

MaghSamana avatar Jan 19 '23 20:01 MaghSamana

Any updates on this?

It is a serious SEO problem. I literally had to cancel the migration to Joomla 4 because of this.

MaghSamana avatar Jan 23 '23 17:01 MaghSamana

@MaghSamana I could not re-procedure the issue, too, with a fresh Joomla 4.2 installation. I created a menu item of Category Blog menu item type as you described. But on article details page, It still use article meta description, not category category meta description as you said

Maybe you should try to re-procedure the issue with a fresh installation of Joomla ? If it does not happen with that fresh installation, maybe there is a plugin on your site causes this wrong behavior.

joomdonation avatar Feb 20 '23 04:02 joomdonation

Closing this issue because both of us tried but could not re-procedure the issue. @MaghSamana If you still think that this is a valid issue valid issue, please try to reproduce it with a fresh of Joomla 4 installation and tell us step by step how we can see the issue ourself. If it is possible to reproduce, we would be happy to look at it and get it sorted.

joomdonation avatar Mar 05 '23 07:03 joomdonation

Ok I have migrated from J3 to J4 and I am faced with the same scenario, SEO is saying I have duplicate meta descriptions. This is a bug, Quoting "When the category does not have a menu item, then its articles' meta description shows up normally.

But when there is a menu item for a category (e.g. category blog), then the category's articles get the category's meta description and not their own."


- - - -
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39664.

smileysit avatar Jan 01 '24 13:01 smileysit

Website #2, same as my comments above. Joomla 3 to Joomla 4 update and have the same SEO issues. The articles get the category meta description.

smileysit avatar Jan 01 '24 23:01 smileysit

Website #3, looking at your showcase websites. https://showcase.joomla.org/browse-sites/25089.html meta name="description" content="Home of the World Heritage Port Arthur Historic Site, the Tasman Peninsula hosts an abundance of offerings for your holiday or short break."

the same metadata is pulled from the Category for all the articles under the Mega Menu.

What is the FIX?

smileysit avatar Jan 01 '24 23:01 smileysit

Tried again with a fresh Joomla 5 installation and could not confirm the issue. I would suggest you to setup a fresh installation of Joomla and try to see if you can see the issue yourself. If Yes, please tell us step by step what we need to do to see the error so that we can check and fix it.

If we cannot procedure the issue ourself, it's impossible for us to provide the fix.

joomdonation avatar Feb 24 '24 12:02 joomdonation

Closing due to no response with additional info to reproduce the issue.

Quy avatar Apr 16 '24 13:04 Quy