Feature No Code Attached Yet
avatar wegwei
wegwei
15 Aug 2023

Steps to reproduce the issue

I create an article and add a title into the field "Browser Page Title" in the tab "Options" - e.g. "xxx my SEO optimized title-text xxx".
Then I create a menu-item for this article. Here (in the menu-item) I do NOT add text into the field "Browser Page Title" in the tab "Page Display", the field is still empty.

Expected result

The title-tag (<title></title>) in the code of the frontend should show the title which I have set into the article, into the field "Browser Page Title" (= xxx my SEO optimized title-text xxx).

Actual result

It shows the wront text in the title-tag (<title></title>): It shows the "MENU title" (= the wording of the textlink in the menu) instead of the "Browser Page Title" (= xxx my SEO optimized title-text xxx).

System information (as much as possible)

Joomla! 4.3.3 with YOOtheme Version 4.0.10

Additional comments

I refer to the issue #28468 . a comment here says that the issue is solved: #39249. but it isn't...

avatar wegwei wegwei - open - 15 Aug 2023
avatar joomla-cms-bot joomla-cms-bot - change - 15 Aug 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Aug 2023
avatar coolcat-creations
coolcat-creations - comment - 15 Aug 2023

Agree, just tested with Cassiopeia and same issue.

avatar brianteeman
brianteeman - comment - 15 Aug 2023

Browser page title from the article is only used when there is NO single menu item for the article eg when the article is in a blog category or featured view

avatar coolcat-creations
coolcat-creations - comment - 15 Aug 2023

@brianteeman what was the aim of this fix then: #39249 ?

avatar brianteeman
brianteeman - comment - 15 Aug 2023

dont really know but it is inside a code block that says
// If the menu item is not linked to this article

avatar coolcat-creations
coolcat-creations - comment - 15 Aug 2023

Yes, but it was fixed later with #39249, and the fix does not seem to work anymore...

avatar brianteeman
brianteeman - comment - 15 Aug 2023

no. the code you are referring to will only be used If the menu item is not linked to this article

avatar coolcat-creations
coolcat-creations - comment - 15 Aug 2023

It says: Expected result AFTER applying this Pull Request

Joomla use Browser Page Title setup in the article for Browser Page Title.

avatar wegwei
wegwei - comment - 15 Aug 2023

hm. It is not logical.

It is okay that the menu-item-title is overwriting the article-item-title.

But it is not logical when the PAGE title is being displayed instead of the browser title (which was specially inserted).

It really seems to be a bug. The fact that the error has already been fixed in the past confirms that. Maybe the fix was lost by accident during an update. It would be great if this could be corrected again.

Many thanks

avatar wegwei
wegwei - comment - 15 Aug 2023

P.S. stop. I've made a mistake in my description. Not the PAGE title is displayed - but the MENUE title (the link text which is visible in the menue). But nethertheless - it is not logical and it does not change the problem itself.

avatar brianteeman
brianteeman - comment - 15 Aug 2023

@wegwei can you please give a full description of exactly what you are doing and what is displayed and what you expect to be displayed.

avatar wegwei wegwei - change - 15 Aug 2023
The description was changed
avatar wegwei wegwei - edited - 15 Aug 2023
avatar wegwei
wegwei - comment - 15 Aug 2023

no problem.
-> I have updated the first post "Steps to reproduce the issue..." with the correct wording and with more details.

avatar wegwei
wegwei - comment - 15 Aug 2023

If necessary I could send some screenshots?

avatar brianteeman
brianteeman - comment - 15 Aug 2023

This is the current situation as far as I can tell from testing and as far as I can tell from reading the code is the intended behaviour

Create article(A) with a browser page title(B)

Scenario 1

Display that article(A) from a category blog etc ie not a direct menu
Browser displays (B) in the title

Scenario 2

Display the article(A) directly from a menu item (C)
Browser displays C in the title

Scenario 3

Display the article(A) directly from a menu item(C) with a browser page title (D)
Browser displays D in the title

avatar wegwei
wegwei - comment - 15 Aug 2023

hi brian, yes, your scenario describes the actual result.

but this is not logical: If this was the planned scenario, so it would be necessary very often to add the title twice: in the article for showing it by listing in category blogs and also in the menu item for showing through direct links.

in practical use it is very often needed to list articles through category blog AND to set a link to some of the content pages. so it would be necessary to add the title tag *** twice. by doing seo optimizations it is also necessary to update both... I can't imagine that this is the conceptual planning.

*** and the handling of the meta tag "description" is similar. but this issue is in another way unlogical:
by changing the meta description in the menu item it is NOT displayed and it shows still the meta description out of the article item.

please find both scenario in the screenshot:

title2

avatar brianteeman
brianteeman - comment - 15 Aug 2023

in practical use it is very often needed to list articles through category blog AND to set a link to some of the content pages.

Never had a need for that myself but I just checked and if you do that then both articles will of course use the settings for the inidividual menu item

avatar brianteeman
brianteeman - comment - 15 Aug 2023

I will step back from this now. For me it is working as intended but perhaps others have a different view

avatar wegwei
wegwei - comment - 15 Aug 2023

thanks brian for your comments.

yes, we are using the described scenario very often and for us it would be important to solve the issue.

I would be happy if the developers would take up this issue.

avatar brianteeman brianteeman - change - 15 Aug 2023
Labels Added: Feature
avatar brianteeman brianteeman - labeled - 15 Aug 2023
avatar joomdonation joomdonation - change - 26 Aug 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-08-26 09:03:28
Closed_By joomdonation
avatar joomdonation joomdonation - close - 26 Aug 2023
avatar joomdonation
joomdonation - comment - 26 Aug 2023

PR #41452 should solve this issue. Please help testing, thanks !

Add a Comment

Login with GitHub to post a comment