Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MaghSamana opened this issue Jan 18, 2023 · 10 comments

Comments

@MaghSamana
Copy link

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)

@carlitorweb
Copy link
Member

carlitorweb commented Jan 19, 2023

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

@MaghSamana
Copy link
Author

MaghSamana commented Jan 19, 2023

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
Copy link
Author

Any updates on this?

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

@joomdonation
Copy link
Contributor

@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
Copy link
Contributor

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.

@smileysit
Copy link

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
Copy link

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.

@Quy Quy reopened this Jan 1, 2024
@smileysit
Copy link

smileysit commented Jan 1, 2024

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?

@joomdonation
Copy link
Contributor

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.

@Quy
Copy link
Contributor

Quy commented Apr 16, 2024

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

@Quy Quy closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants