Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f0a090d

Browse files
committed
fix(docs): correctly generate sitemap
1 parent 6d9313a commit f0a090d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/spec/sitemapSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('sitemap', function() {
1515
var map = new SiteMap([new Doc({section: 'foo', id: 'a.b.c<>\'"&'})]);
1616
expect(map.render()).toContain([
1717
' <url>',
18-
'<loc>http://docs.angularjs.org/#!/foo/a.b.c&lt;&gt;&apos;&quot;&amp;</loc>',
18+
'<loc>http://docs.angularjs.org/foo/a.b.c&lt;&gt;&apos;&quot;&amp;</loc>',
1919
'<changefreq>weekly</changefreq>',
2020
'</url>'].join(''));
2121

docs/src/SiteMap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function SiteMap(docs){
1212
map.push('<?xml version="1.0" encoding="UTF-8"?>');
1313
map.push('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');
1414
docs.forEach(function(doc){
15-
map.push(' <url><loc>http://docs.angularjs.org/#!/' +
15+
map.push(' <url><loc>http://docs.angularjs.org/' +
1616
encode(doc.section) + '/' +
1717
encode(doc.id) +
1818
'</loc><changefreq>weekly</changefreq></url>');

0 commit comments

Comments
 (0)