Page MenuHomePhabricator

Discord embeds show incorrect disambiguation page previews for IP range contributions
Closed, InvalidPublicBUG REPORT

Description

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.

image.png (456×818 px, 50 KB)

Event Timeline

This is a problem on Discord's end. Appropriate OpenGraph metadata is provided. The canonical URL is also appropriately identified. Yes, they have some hack in place that doesn't believe that's the correct page with a slash in it, and it's been well known for ages. It affects other pages, as was explained to you on Discord just before you filed this task.

I would suggest closing this invalid and to file an issue or email upstream with Discord.