mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-15 12:09:02 +08:00
fix:docs: Fix sitemap generator to use doc.id instead of doc.name
doc.id should be used instead of doc.name, otherwise links are wrongly generated
This commit is contained in:
@@ -14,7 +14,7 @@ function SiteMap(docs){
|
||||
docs.forEach(function(doc){
|
||||
map.push(' <url><loc>http://docs.angularjs.org/#!/' +
|
||||
encode(doc.section) + '/' +
|
||||
encode(doc.name) +
|
||||
encode(doc.id) +
|
||||
'</loc><changefreq>weekly</changefreq></url>');
|
||||
});
|
||||
map.push('</urlset>');
|
||||
|
||||
Reference in New Issue
Block a user