Hello,
I would like to report a routing bug in SP Page Builder Pro.
Steps to reproduce:
Environment: Joomla 5 or 6 (the issue exists on both).
Steps:
- Install Joomla 5.4.5 with the Shaper Helix Ultimate template.
- Set the homepage to a page built with SP Page Builder Pro (Page type).
- Create a menu item of type "Category Blog" and add several articles to that category.
Open the site and navigate to that blog category menu item. For example:
https://test5.my-joomla.ru/tests/test1
Where:
tests = category alias
test1 = article alias
→ Everything works as expected.
The issue: Now change the URL to remove the category part:
https://test5.my-joomla.ru/test1
Expected result: HTTP 404 (Not Found).
Actual result: The SPPB routing intercepts the request, searches the database for an article with alias test1, and tries to display it. It fails, but instead of a 404, the page returns HTTP 200 OK and shows this message:
"You don't have permission to access this. Please contact a website administrator if this is incorrect."
Problem:
The page returns HTTP 200, so it gets indexed by search engines.
There is no redirect.
This creates an unwanted duplicate page for every article.
Temporary workaround I found:
In the file: /components/com_sppagebuilder/router.php
Right after the method:
private static function getCollectionItemIdFromSlug($slug)
{
I added:
return null;
This prevents SPPB routing from intercepting these URLs, and the pages no longer exist.
Request:
Could you please look into this issue? A proper fix is needed so that SPPB does not handle these "empty" URLs and return HTTP 200. Currently, it creates unnecessary indexable pages.
Thank you.