? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
5 Feb 2021

Pull Request for Issue # .

Summary of Changes

Same with other similar PRs, this PR modifies com_content code to use setDocumentTitle method from HtmlView class to set document title instead of using the same repeating code on all views.

Testing Instructions

Create menu items to link to link to the follow menu item types of com_content:

  • Archived Articles
  • Category Blog
  • Categories List
  • Create Article
  • Featured Articles
  • Single Articles

Then access to these menu items, make sure browser page title is the same before and after patch.

avatar joomdonation joomdonation - open - 5 Feb 2021
avatar joomdonation joomdonation - change - 5 Feb 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Feb 2021
Category Front End com_content
avatar joomdonation joomdonation - change - 5 Feb 2021
The description was changed
avatar joomdonation joomdonation - edited - 5 Feb 2021
avatar ChristineWk ChristineWk - test_item - 5 Feb 2021 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 5 Feb 2021

I have tested this item successfully on 107d428


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

avatar alikon alikon - test_item - 5 Feb 2021 - Tested successfully
avatar alikon
alikon - comment - 5 Feb 2021

I have tested this item successfully on 107d428


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

avatar alikon alikon - change - 5 Feb 2021
Status Pending Ready to Commit
avatar alikon
alikon - comment - 5 Feb 2021

RTC


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

avatar wilsonge wilsonge - change - 6 Feb 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-02-06 12:29:54
Closed_By wilsonge
Labels Added: ? ?
avatar wilsonge wilsonge - close - 6 Feb 2021
avatar wilsonge wilsonge - merge - 6 Feb 2021
avatar wilsonge
wilsonge - comment - 6 Feb 2021

Thanks!

avatar Denitz
Denitz - comment - 9 Feb 2021

@joomdonation @wilsonge See https://github.com/joomla/joomla-cms/blob/4.0-dev/components/com_content/src/View/Category/HtmlView.php lines 176-178, 178 should be deleted

		$this->setDocumentTitle($title);

		$this->document->setTitle($title);
avatar Denitz
Denitz - comment - 9 Feb 2021

And article view still has a call of $this->document->setTitle() for multiple-pages

avatar joomdonation
joomdonation - comment - 9 Feb 2021

Thanks @Denitz . I made PR #32364 to correct these small issues.

Add a Comment

Login with GitHub to post a comment