Alternate href urls breaks sitemap

Open
#4 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
typescript
Domain
web-dev

Research direction

Start by reproducing the alternate href configuration described in the README and inspect the generated sitemap XML. Compare its namespace and link elements with Google's localized-versions example; done when Google Search Console accepts the sitemap without the invalid child-element error.

Written by the indexing model from the issue text.

Description

Hello !

When i tried with alternate href like in the readme i have the following error on google console:

The element 'url' has invalid child element 'link' in namespace 'http://www.w3.org/TR/xhtml11/xhtml11_schema.html'. List of possible elements expected: any element in namespace 'http://www.google.com/schemas/sitemap-image/1.1, http://www.google.com/schemas/sitemap-mobile/1.0, http://www.google.com/schemas/sitemap-video/1.1'. 

I think it is related to : https://developers.google.com/search/docs/specialty/international/localized-versions#example_2 . They said to Specify the xhtml namespace as follows:

xmlns:xhtml="http://www.w3.org/1999/xhtml"

I did not find a way to make it work with this plugin but maybe that's me who is wrong on my way to do it

Dominant language
TypeScript
Stars
96
Forks
9
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from code-forge-io/seo-tools

All issues in code-forge-io/seo-tools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.