joomla-cms
joomla-cms copied to clipboard
Joomla 5.x showing the Article Title as Browser Title, instead of the Menu Item Title
Steps to reproduce the issue
Create an Article and set its Title to "Some Article Title". Create a Menu Item of the Type "Single Article". Name the Menu Item "Some Menu Item" and select the article to be displayed.
Expected result
Up until Joomla 4.x the Browser
Actual result
Since Joomla 5.x it appears the Article Title is beeing used as the default Browser title.
System information (as much as possible)
Tested on Joomla 4.4.6 and 5.1.2 with default Cassiopeia Template
Additional comments
I can see a usage for both cases. Perfect solution would be probably to have a setting to choose what to show somewhere 👉👈
Please see https://github.com/joomla/joomla-cms/pull/41452 where the code was changed and the discussion here https://github.com/joomla/joomla-cms/issues/41372
@PixelBaer Any comment on the Answer of @brianteeman above?
@fgsw idk really. the behavior has been changed in #41452. Noone seems to care / notice the change. some may even prefer it this way - i guess SEO folks might prefer it this way. i was just confused, that it changed. and imho it is a little messy, because there is (still) no clear indication what has priority in defining the title. right now the priority order is:
- Article > Tab "Options" > Section "Options" > Browser Page Title
- Menu Item > Tab "Page Display" > Browser Page Title
- Article Title
- Menu Title (only for Blogs)
@PixelBaer The change was committed and agreed by people, so we will keep it how it is for now. In your case, if you create menu item to link to article and don't want to use Browser Page Title in the article, just override it by setup the title you want to use in Browser Page Title setting of the menu item
right now the priority order is:
That's not right if you create a menu item link directly to the article. In that case, Browser Page Title (not menu item title) from the menu item will take higher priority.
I'm closing this issue for now.