grav-plugin-seo icon indicating copy to clipboard operation
grav-plugin-seo copied to clipboard

Default twitter and facebook title are different

Open sque89 opened this issue 5 years ago • 0 comments

The behaviour of the default (not overriden) title for facebook and twitter is different. In case of twitter, the plugin appends the site title to the page title

$meta['twitter:title']['content'] = $page->title() . ' | ' . $this->config->get('site.title');

In case of facebook the site title is not appended

$meta['og:title']['content'] = $page->title();

In my opinion both titles should default to the same value and i think the behaviour of facebook is correct. Maybe a setting to append or not append the site title is useful.

If you agree i would create a pull request for this.

Thanks.

sque89 avatar Jul 02 '19 13:07 sque89