PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
26 Aug 2023

Pull Request for Issue #41372.

Summary of Changes

Currently, if you create a menu item to display an article and leave browser page title parameter empty in the menu item parameters, the system is using display wrong browser page title. Instead of using browser page title set from article (or article title), it uses Title of menu item and it's not right. See #41372 for more more information

I would say that this is a bug fix, but since the issue is marked as new feature, I create a PR to 5.0-branch. Happy to change the PR to 4.3-dev if needed

Testing Instructions

  1. Uses Joomla 5
  2. Follow instructions at #41372 , confirm the issue
  3. Apply patch, confirm that the issue is fixed

Actual result BEFORE applying this Pull Request

Joomla is using menu item title for browser page title of the page

Expected result AFTER applying this Pull Request

Joomla is using the browser page title set for the article and if that information is not set, use Article title

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar joomla-cms-bot joomla-cms-bot - change - 26 Aug 2023
Category Front End com_content
avatar joomdonation joomdonation - open - 26 Aug 2023
avatar joomdonation joomdonation - change - 26 Aug 2023
Status New Pending
avatar joomdonation joomdonation - change - 26 Aug 2023
Title
Handle browser page title properly for article view
[5.0] Handle browser page title properly for article view
avatar joomdonation joomdonation - edited - 26 Aug 2023
avatar coolcat-creations
coolcat-creations - comment - 26 Aug 2023

I have tested the patch but I get an error "Class "Joomla\CMS\Event\Content\ContentPrepareEvent" not found" on all sites after applying.

avatar joomdonation
joomdonation - comment - 26 Aug 2023

@coolcat-creations I don't know why you are getting that error as it is not related to change from this PR. Is it from a fresh latest Joomla 5 installation ?

Anyway, I realized that this is is not a right fix (and not easy to fix, because if page title is not entered for the menu item, Joomla will use menu item title for page title in earlier process). I will have to find a way to handle it.

avatar coolcat-creations
coolcat-creations - comment - 26 Aug 2023

I am sorry I tested on J4 - my bad - let me check once again

avatar joomdonation joomdonation - change - 26 Aug 2023
Labels Added: PR-5.0-dev
avatar joomdonation
joomdonation - comment - 26 Aug 2023

OK. So the last commit should handle it properly. Please test it again. Thanks !

d78a15d 26 Aug 2023 avatar joomdonation CS
avatar crommie crommie - test_item - 26 Aug 2023 - Tested successfully
avatar crommie
crommie - comment - 26 Aug 2023

I have tested this item ✅ successfully on d78a15d


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

avatar web-eau-net web-eau-net - test_item - 26 Aug 2023 - Tested successfully
avatar web-eau-net
web-eau-net - comment - 26 Aug 2023

I have tested this item ✅ successfully on d78a15d


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

avatar HLeithner HLeithner - change - 26 Aug 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-08-26 13:07:04
Closed_By HLeithner
avatar HLeithner HLeithner - close - 26 Aug 2023
avatar HLeithner HLeithner - merge - 26 Aug 2023
avatar HLeithner
HLeithner - comment - 26 Aug 2023

thanks

Add a Comment

Login with GitHub to post a comment