Skip to content

Commit

Permalink
chore(links): clean up fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Dec 10, 2024
1 parent 93f028b commit f3b85f4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/rari-doc/src/html/fix_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ pub fn handle_internal_link(
&& !Page::ignore_link_check(href)
&& href_locale != Some(default_locale())
{
println!("{resolved_href}");
if let Some(en_us_href) = url_with_locale(&resolved_href, default_locale()) {
resolved_href = resolve_redirect(&en_us_href).unwrap_or(Cow::Owned(en_us_href));
println!("{resolved_href}");
resolved_href_no_hash =
&resolved_href[..resolved_href.find('#').unwrap_or(resolved_href.len())];
}
Expand Down

0 comments on commit f3b85f4

Please sign in to comment.