Skip to content

Commit

Permalink
Exclude anchor and query strung from URLs in sitemap connector (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault authored Feb 14, 2025
1 parent 680be49 commit 85067b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuclia-sync-agent-app",
"version": "1.6.0",
"version": "1.6.1",
"description": "This is a Nuclia Sync Agent App",
"main": "build/index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.6.1 (2025-02-14)

- Exclude anchor and query strung from URLs in sitemap connector

# 1.6.0 (2025-01-28)

- Support files download when using sitemap connector with local extraction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function parseSitemap(sitemapContent: string): Promise<SiteMapModel[]> {
const $ = cheerio.load(sitemapContent, { xml: true });

$('url').each((_, element) => {
const loc = $(element).find('loc').text();
const loc = $(element).find('loc').text().split('?')[0].split('#')[0];
const lastmod = $(element).find('lastmod').text();
urls.push({ loc, lastmod });
});
Expand Down

0 comments on commit 85067b4

Please sign in to comment.