Steps to replicate the issue (include links if applicable):
- Go to a Special:Contributions page for an IP range, such as:
https://en.wikipedia.org/wiki/Special:Contributions/78.40.232.0/21
https://en.wikipedia.org/wiki/Special:Contributions/78.40.232.0/19
- Share one of these links on Discord.
- Observe the embed preview that Discord generates.
What happens?:
Discord shows an incorrect link preview for a number-related disambiguation page (e.g., "21 (number)" or "19 (number)") instead of showing the actual Special:Contributions page or a generic Wikimedia summary.
What should have happened instead?:
Discord should show a more appropriate preview (such as "User contributions for 78.40.232.0/21 on Wikipedia") or no preview at all, rather than misinterpreting the URL and linking to unrelated disambiguation pages.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
N/A — this is occurring on WMF-hosted wikis like English Wikipedia and Dutch Wikipedia.
Other information (browser name/version, screenshots, etc.):
Likely caused by Discord (or other sites) misinterpreting the URL path and stripping the /, assuming the last segment is a page title (e.g., 21 instead of /21 as part of the IP range).
This could possibly be fixed by improving the OpenGraph metadata or canonical URL handling on Special:Contributions pages for IP ranges.
