Dear Joomshaper Team,
We are using SP Pagebuilder 3.8.10 an Joomla 4.3.4.
We now noticed that if the component is SP Pagebuilder than the global robots are not loaded anymore.
So if I set noindex, nofollow in the global config and the menu item says use global than there are no robots integrated in the menu item, which means the default is used, which is index, follow.
Seems like the pagebuilder is stripping the robots from the metas. When I var_dump the global config in the index.php, than the robots are no longer there:
["_metaTags"]=>
array(2) {
["http-equiv"]=>
array(1) {
["content-type"]=>
string(24) "text/html; charset=utf-8"
}
["name"]=>
array(1) {
["rights"]=>
NULL
}
}
In another menu item which is a normal Joomla article the var_dump looks as follows:
["_metaTags"]=>
array(2) {
["http-equiv"]=>
array(1) {
["content-type"]=>
string(24) "text/html; charset=utf-8"
}
["name"]=>
array(2) {
["rights"]=>
NULL
["robots"]=>
string(17) "noindex, nofollow"
}
}
The only thing I found is in the file htdocs/components/com_sppagebuilder/views/page/view.html.php the following code:
if ($menu) {
if ($menu->getParams()->get('robots')) {
$this->document->setMetadata('robots', $menu->getParams()->get('robots'));
}
}
But if I delete this code there are no changes in the frontend. There are still no robots set.
How can that be??? If I tell the page not to be indexed and it than is indexed nevertheless? We have a client who is really angry because the page we are currently working on (it is on a subdomain of the old page) is now already been indexed by Google.
I know that there are several other options to prevent the page from being indexed. And maybe in the new version of SP Pagebuilder this is not the case anymore, but I want to make sure that this cannot happen again.
Can you tell me which file is responsible for that change as I tried to find it but have not been successful. Any help would be appreciated. If you need further information feel free to contact me.
Kind regards
Tanja Vogt