mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00: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:
parent
f3323ec18e
commit
8e6e09a4bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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>');
|
||||
|
|
|
|||
Loading…
Reference in a new issue