Update html page title to have both the current active Segment as well as Menu Category and Subcategory #23815
+263
−58
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
UX-341
We need to update the page title everytime active Segment is changed as well as changes in the Menu Category and Subcategory
CHANGE #1 SEGMENT in Page title
Currently, the Browser Page title,
<title>Demo Site - 2025-10-14 - Web Analytics Reports - Matomo</title>But because a segment called
Click liveaboard.com adis selected in the UI at this URL,we expect instead the Segment name to be displayed, AFTER the date in the title, like this:
CHANGE #2 Current Menu Category and Subcategory in Page title
So for example when viewing the goal My Goal Name which is inside the “Goals” menu,
We concatenate the Menu category and the Menu sub-category together with > character as separator
With both the Segment and Menu Category and Subcategory:
<title>Demo Site - 2025-10-14 - Goals > My Goal Name - Click liveaboard.com ad - Web Analytics Reports - Matomo</title>The default title will be (after login):
<title>Demo Site - 2025-11-23 - Dashboard - All visits - Web Analytics Reports - Matomo</title>Checklist
Review