Closed alucardu closed 1 year ago
This is expected.
@alan-agius4 Could you explain/give an an example why the updateTag()
isn't the default behavior? Why would I want to keep multiple meta tags from different pages?
updateTag() isn't the default behavior?
Because because you are explicitly using the addTags
API. Having multiple meta tags with the same name is valid HTML.
Example:
<meta name="robots" content="noindex">
<meta name="robots" content="nofollow">
Will be aggregated as
<meta name="robots" content="noindex, nofollow">
See: https://developers.google.com/search/blog/2007/03/using-robots-meta-tag
In your case, you should use updateTags
which under the hood will call addTags
when the tag does not exist in the DOM.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.