-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Use the page name if the page has no SEO title #646
Conversation
@greg0ire |
IMO yes, because there is a logic that will use the page name, but a wrong if-statement makes it unreachable. |
Kein deutsch bitte! "titel" => "title" |
Well I'll fix that with squash merge |
Here you go! Danke schön @core23 ! |
This commit breaks seo bundle functionality. Now I can't set Seo Title values at runtime. Sonata Page Title always replace them. $seoPage = $this->container->get('sonata.seo.page');
$seoPage->setTitle($post->getTitle()) |
Can you please show a little bit more of your code? |
@core23 do we have a test for this? |
Maybe adding |
$seoPage->setTitle($title) called 3 times. First set titile from config. Second - at runtime. Third - if page have title in admin. SeoPage Title should not be overwritte, if $page->getTitle() is null.
|
IMHO this is another issue. The title was always overwritten, the only thing that was changed is the fallback to the page name. Maybe you didn't have a page title, so your code just works before the patch. |
Revert: Use the page name if the page has no SEO title (#646)
Rebase of #420
Changelog
Subject
The page name fallback could never be reached because of the surrounding if-statement.
To do