aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/spec/sitemapSpec.js2
-rw-r--r--docs/src/SiteMap.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/spec/sitemapSpec.js b/docs/spec/sitemapSpec.js
index 5f927835..a6fc03cd 100644
--- a/docs/spec/sitemapSpec.js
+++ b/docs/spec/sitemapSpec.js
@@ -15,7 +15,7 @@ describe('sitemap', function() {
var map = new SiteMap([new Doc({section: 'foo', id: 'a.b.c<>\'"&'})]);
expect(map.render()).toContain([
' <url>',
- '<loc>http://docs.angularjs.org/#!/foo/a.b.c&lt;&gt;&apos;&quot;&amp;</loc>',
+ '<loc>http://docs.angularjs.org/foo/a.b.c&lt;&gt;&apos;&quot;&amp;</loc>',
'<changefreq>weekly</changefreq>',
'</url>'].join(''));
diff --git a/docs/src/SiteMap.js b/docs/src/SiteMap.js
index fb670c31..16b10266 100644
--- a/docs/src/SiteMap.js
+++ b/docs/src/SiteMap.js
@@ -12,7 +12,7 @@ function SiteMap(docs){
map.push('<?xml version="1.0" encoding="UTF-8"?>');
map.push('<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">');
docs.forEach(function(doc){
- map.push(' <url><loc>http://docs.angularjs.org/#!/' +
+ map.push(' <url><loc>http://docs.angularjs.org/' +
encode(doc.section) + '/' +
encode(doc.id) +
'</loc><changefreq>weekly</changefreq></url>');