Skip to content

Commit

Permalink
fix: keep url details
Browse files Browse the repository at this point in the history
  • Loading branch information
nomagick committed Apr 17, 2024
1 parent 11a5a90 commit 781b835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/functions/src/cloud-functions/crawler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ ${this.content}
const noSlashURL = ctx.req.url.slice(1);
let urlToCrawl;
try {
urlToCrawl = new URL(normalizeUrl(noSlashURL.trim()));
urlToCrawl = new URL(normalizeUrl(noSlashURL.trim(), { removeTrailingSlash: false, removeSingleSlash: false }));
} catch (err) {
throw new ParamValidationError({
message: `${err}`,
Expand Down

0 comments on commit 781b835

Please sign in to comment.