[rc.8] Clicking uploaded file link redirects to home instead of opening it
Found a core bug in rc.8: clicking a direct in-post link to an uploaded
image/file redirects to the forum home page instead of opening it.
Opening the same link via "Open in new tab" works fine.
Root cause: Formatter::isInternalUrl() marks any same-host URL as
"UrlLink--internal" without checking if it maps to an actual app route.
The client-side routeInternalLinks.ts trusts the class and calls
m.route.set(), which silently falls back to home when the path
(e.g. /assets/files/...) doesn't match any registered route.
Full details and reproduction steps here:
flarum/framework5012
Reproducible with fof/pwa both enabled and disabled, so it's not
extension-specific β pure core issue.