At least OSRM seems to have fixed routing in the meantime, i.e. look at https://www.openstreetmap.org/directions?engine=fossgis_osrm_foot&route=57.145024%2C24.869163%3B57.148388%2C24.871094

That looks correct.

If you switch the routing algorithm to graphhopper or valhalla though, it sends you over the trunk road.