Skip to content

Commit 80cb47f

Browse files
jshajyn514
authored andcommitted
Include slash at the end of sitemap URLs
Without the slash, these URLs get immediately redirected to the version with the slash. We should skip the redirect.
1 parent cead212 commit 80cb47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/core/sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
{% for release in releases -%}
44
<url>
5-
<loc>https://docs.rs/{{ release.crate_name }}/latest/{{ release.target_name }}</loc>
5+
<loc>https://docs.rs/{{ release.crate_name }}/latest/{{ release.target_name }}/</loc>
66
<lastmod>{{ release.last_modified | escape_xml }}</lastmod>
77
<priority>1.0</priority>
88
</url>

0 commit comments

Comments
 (0)