-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entry title not being used for SEO page title #479
Comments
Hi, |
Can confirm I have the same exact problem on two different sites running Craft 5. |
Changing it to |
After further investigation, it appears there are multiple issues contributing to the problem.
foreach ($this->_element->attributes() as $attribute) {
$variables[$attribute] = $this->_element->{$attribute};
} However, it probably isn't the best practice to do this since there could easily be naming conflicts. Rather, it would be better to add if (!array_key_exists('element', $variables) && $this->_element)
$variables['element'] = $this->_element;
$str = Craft::$app->view->renderObjectTemplate($template, $object); To: $str = Craft::$app->view->renderObjectTemplate($template, [], $object); In my testing these changes work. However, I'm not familiar enough with Craft's Element model and renderObjectTemplate to recommend this solution, otherwise I would submit a pull request. Perhaps the maintainer of the plugin can weigh in. |
This problem is fixed now with v5.0.0-rc3. Thank you @Tam |
I think I have this same issue with v4.2.2 of the plugin. Has anyone else running the same version run into this error? |
Not sure if this is part of the same issue - but if you have a title that contains a I.e. if the title of an entry is |
Description
In the settings I have the default settings to use the entry title and site name:
When creating a new entry, the title does not get used from the entry:
I noticed this started happening after upgrading from v5.0.0-rc1
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: