Link fixing should detect and fix links pointing to spaces that have been migrated.
Link format: <a href="https://<base_url>/spaces/viewspace.action?key=<space_key>">
Workaround
Manually update the page. Or contact Atlassian to update the pages in bulk.