Drupal\Component\Utility\UrlHelper::externalIsLocal should also check for differences in the port number in $url and $base_url. See the attached patch.
Needs work
11.0 🔥
base system
The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.
Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.