Skip to content

Commit 5df76e4

Browse files
authored
chore: fix sitemap urls (#164)
1 parent b8d978a commit 5df76e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/playground/lib/static-index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tagNameMap = {
3333

3434
const generateSiteMap = (componentNames) => {
3535
const urls = componentNames.map(componentName => {
36-
return { url: `/ui5-webcomponents/playground/component/${componentName}/`, changefreq: 'daily' };
36+
return { url: `/ui5-webcomponents/playground/components/${componentName}/`, changefreq: 'daily' };
3737
});
3838

3939
urls.unshift({ url: `/ui5-webcomponents/playground/`, changefreq: 'daily' });
@@ -48,7 +48,6 @@ const generateSiteMap = (componentNames) => {
4848
// Creates a sitemap object given the input configuration with URLs
4949
var sitemap = sm.createSitemap( options );
5050
// Generates XML with a callback function
51-
sitemap.toXML( function(err, xml){ if (!err){ console.log(xml) } });
5251
// Gives you a string containing the XML data
5352
var xml = sitemap.toString();
5453

0 commit comments

Comments
 (0)