seo icon indicating copy to clipboard operation
seo copied to clipboard

Meta title always contains site name despite being set not to.

Open peteeveleigh opened this issue 4 years ago • 5 comments

The page meta title always contains the site at the end. Regardless of whether or not there is a token set for it. It also cannot be edited or removed regardless of whether the token is unlocked.

To reproduce...

  • In the SEO settings, unlock and/or remove the default {{ sitename }} token.
  • Create an entry
  • Edit the SEO field for the entry. The Site name is always present and greyed out indicating it cannot be edited

Versions

  • Craft version: 3.7.13 Solo
  • SEO version: 3.7.4

peteeveleigh avatar Sep 28 '21 19:09 peteeveleigh

I figured it out. Have to remove the site name token from the field rather than the plugin settings

peteeveleigh avatar Sep 28 '21 19:09 peteeveleigh

Although it seems that even if I unlock the sitename token, if I delete it then it just gets injected back in when the snippet updates. 🤷‍♂️

peteeveleigh avatar Sep 28 '21 19:09 peteeveleigh

@fantasticmachine Strange, I haven't experienced that before. Will check it out and revert.

alexjcollins avatar Sep 29 '21 06:09 alexjcollins

To clarify, it's the JS part that is injecting the site name back into the preview snippet when editing the meta title.

This is only a small site so I've just removed the site name token from the default format and have added it manually to pages where it's needed. (We wanted it on all pages except the homepage)

peteeveleigh avatar Sep 29 '21 11:09 peteeveleigh

Thanks for clarifying.

Typically when we have that setup we tend to have two fields, one for the homepage (without the site name), and another for all the other pages.

alexjcollins avatar Sep 29 '21 11:09 alexjcollins