Skip to content

[v2] Sitemap contains links that result in 302s #2134

@binarylogic

Description

@binarylogic

🐛 Bug Report

Hi. This isn't necessarily a bug report, but it is typically bad SEO practice for the sitemap to contain redirects. This is due to the fact that the URLs contained do not end with a /. This is a wider spread problem with linking in general across docusaurus, so I'm curious to hear what you think.

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

  1. Open https://vector.dev/sitemap.xml

  2. Notice that https://vector.dev/blog is contained.

  3. Notice accessing the URL results in a 302:

    curl -v -s https://vector.dev/blog > /dev/null
    
  4. The destination is https://vector.dev/blog/

Expected behavior

For the sitemap to point to the final URL.


It's possible that this does not affect SEO at all, but I wanted to bring it your attention in the event it does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executiondifficulty: intermediateIssues that are medium difficulty level, e.g. moderate refactoring with a clear test plan.mlhMajor League Hacking Fellowship

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions