Skip to content

Commit

Permalink
FIX Web Crawler doesn't include search params in URLs (#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmosman authored May 2, 2024
1 parent c5e06bc commit 2254d16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ function getURLsFromHTML(htmlBody: string, baseURL: string): string[] {
*/
function normalizeURL(urlString: string): string {
const urlObj = new URL(urlString)
const hostPath = urlObj.hostname + urlObj.pathname
const hostPath = urlObj.hostname + urlObj.pathname + urlObj.search
if (hostPath.length > 0 && hostPath.slice(-1) == '/') {
// handling trailing slash
return hostPath.slice(0, -1)
Expand Down

0 comments on commit 2254d16

Please sign in to comment.