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

Joomla 5.x showing the Article Title as Browser Title, instead of the Menu Item Title

Open PixelBaer opened this issue 1 year ago • 3 comments

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

was per default the title of the Menu Item. So in this case it should be "Some Menu Item" <img src="https://github.com/user-attachments/assets/011c60f3-5f1e-4863-8f6b-651d0bb4dff8" alt="j4"> <h3>Actual result</h3> <p>Since Joomla 5.x it appears the Article Title is beeing used as the default Browser title. <img src="https://github.com/user-attachments/assets/3afc9e42-1be8-49a9-b5aa-27791c12029a" alt="j5"></p> <h3>System information (as much as possible)</h3> <p>Tested on Joomla 4.4.6 and 5.1.2 with default Cassiopeia Template</p> <h3>Additional comments</h3> <p>I can see a usage for both cases. Perfect solution would be probably to have a setting to choose what to show somewhere 👉👈</p>

PixelBaer avatar Aug 06 '24 07:08 PixelBaer

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

brianteeman avatar Aug 06 '24 08:08 brianteeman

@PixelBaer Any comment on the Answer of @brianteeman above?

ghost avatar Oct 10 '24 05:10 ghost

@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:

  1. Article > Tab "Options" > Section "Options" > Browser Page Title
  2. Menu Item > Tab "Page Display" > Browser Page Title
  3. Article Title
  4. Menu Title (only for Blogs)

PixelBaer avatar Oct 11 '24 08:10 PixelBaer

@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.

joomdonation avatar Feb 22 '25 10:02 joomdonation