Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src-tauri/src/domain_crawler/helpers/links_selector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ fn validate_and_normalize_url(base_url: &Url, url: &Url) -> Option<Url> {
return None; // Skip URLs from external domains
}

// Normalize the URL by removing trailing slashes and fragment identifiers
// Normalize the URL by removing fragment identifiers
let mut normalized_url = url.clone();
normalized_url.set_path(url.path().trim_end_matches('/'));
normalized_url.set_fragment(None); // Remove fragment identifier

Some(normalized_url)
Expand Down