User tests: Successful: Unsuccessful:
Pull Request resolves #47298 .
Fixes a missing space before the page class suffix in the article layout.
Previously the value of pageclass_sfx was concatenated directly with the item-page class, producing invalid class names such as item-pagepage-class.
The fix ensures the suffix is trimmed and preceded by a space when present, so CSS classes remain properly separated.
Create a Category Blog menu item.
In the Page Display tab, set Page Class to page-class.
Create an article within the same category.
Open the article via the blog menu item.
Inspect the main article container in the browser dev tools.
The class names are concatenated without a space:
com-content-article item-pagepage-class
The page class suffix is correctly separated:
com-content-article item-page page-class
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End com_content |
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-03-06 13:23:26 |
| Closed_By | ⇒ | HLeithner | |
| Labels |
Added:
PR-6.1-dev
|
||
Thanks for the clarification.
I interpreted it as a bug because when the suffix is entered without a leading space (e.g. page-class), the resulting class becomes item-pagepage-class, which merges the class names. I see now that the current behavior is intentional and expects the space to be included in the suffix.
Thanks for explaining , I’ll close the PR.
as @brianteeman said, that's expected behavior
your pr would of course broken every existing site that was relying on it being a new class
Understood, thanks for explaining the compatibility concern.
the space is not missing it is by design that its this way