You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason I'm asking is to determine whether or not there is something in the way SEOmatic generates the sitemaps that needs to be corrected, or whether this is a one-off special case where you need to rewrite the output?
Well, in craft we have some sites in english, but for one of them we want to change the hreflang 'en' -> 'en-gb', but we don't want to change the site language, it should stay 'en'. Haven't found in SEOmatic any special config matching site language and sitemap language, so we thought we could use event hook for this.
UPD. So I think it's a kind of special case and a bit hacky.
Are you also then changing the hreflang meta tags manually on the corresponding pages as well?
yes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sometimes we need to do some tweaks with generated sitemap, so the event was added.