Skip to content

Conversation

@dtolnay
Copy link
Member

@dtolnay dtolnay commented Sep 14, 2025

Fixes #2977.

Maybe it would be possible to redirect trait definitions from docs.rs/serde_core to docs.rs/serde as the canonical location using something like this in --html-in-header:

<script>
  url_regex = /^https:\/\/docs\.rs\/serde_core\/([^\/]+)\/serde_core\/(.+)$/;
  serde_redirect = window.location.href.replace(url_regex, "https://docs.rs/serde/$1/serde/$2");
  if (serde_redirect !== window.location.href) {
    window.location.replace(serde_redirect);
  }
</script>

@dtolnay dtolnay merged commit a4ac0c2 into serde-rs:master Sep 14, 2025
14 checks passed
@dtolnay dtolnay deleted the htmlrooturl branch September 14, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

rustdoc links to serde traits broken since serde_core release

1 participant