Anomalous Josephson effect controlled by an Abrikosov vortex