Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sitemap (#22272) #22320

Merged
merged 3 commits into from
Jan 3, 2023
Merged

Fix sitemap (#22272) #22320

merged 3 commits into from
Jan 3, 2023

Commits on Jan 3, 2023

  1. Fix sitemap (#22272)

    Fix #22270.
    
    Related to #18407.
    
    The old code treated both sitemap and sitemap index as the format like:
    
    ```xml
    ...
    <url>
      <loc>http://localhost:3000/explore/users/sitemap-1.xml</loc>
    </url>
    ...
    ```
    
    Actually, it's incorrect for sitemap index, it should be:
    
    ```xml
    ...
    <sitemap>
      <loc>http://localhost:3000/explore/users/sitemap-1.xml</loc>
    </sitemap>
    ...
    ```
    
    See https://www.sitemaps.org/protocol.html
    
    Co-authored-by: Lauris BH <lauris@nix.lv>
    Co-authored-by: delvh <dev.lh@web.de>
    3 people committed Jan 3, 2023
    Configuration menu
    Copy the full SHA
    6f84a85 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b1bece View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ed00494 View commit details
    Browse the repository at this point in the history