Example:
Boost.URL 1.85.0 Segments (https://www.boost.org/doc/libs/1_85_0/libs/url/doc/html/url/urls/segments.html )'s "current version" links to https://www.boost.org/doc/libs/latest/libs/url/doc/html/url/urls/segments.html , which results in 404. The correct target is https://www.boost.org/doc/libs/latest/doc/antora/url/urls/segments.html .
Instead of replacing 1_85_0/ with latest/, the algorithm should replace 1_85_0/libs/url/doc/html/ with latest/doc/antora/.