Permalink
Browse files

fix(docs): correctly generate sitemap

  • Loading branch information...
1 parent 6d9313a commit f0a090ddf256d0c144e705c0cdf4216d824140f9 @IgorMinar IgorMinar committed Jun 26, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 docs/spec/sitemapSpec.js
  2. +1 −1 docs/src/SiteMap.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(''));
View
@@ -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>');

0 comments on commit f0a090d

Please sign in to comment.