I think our good Dan Brown may have borrowed from that tradition when he wrote the Da Vinci Code. The biggest difference in his take on the matter was that Mary M. was the Sacred Grail - she was pregnant with Jesus baby
Found some info. on the devotion to Mary Magdalene during the middle ages in France. Following are some websites and excerpts if you are interested in following up.

Peace.
witcombe.sbc.edu/davincicode/magdalen-legend-cult.html
The Dominicans, founded in 1216, had, by 1295, unofficially adopted Mary Magdalen as their patron. This adoption coincided with the granting to the Dominicans of the supervision of the immensely important Magdalen pilgrimage sites of La Sainte-Baume and Saint Maximin in Provence.
The preaching of penance by the Franciscans and Dominicans was an immediate success. The sermons gave Mary Magdalen a new significance and heightened interest in her both as a penitent and as a prostitute.
thenazareneway.com/life_of_st_mary_magdalene.htm
The Legend of Mary Magdalene
Suggestions of commentators and legend continues her story. Fourteen years after the ascension, Lazarus with his two sisters, Martha and Mary; with Maximin, one of the seventy-two disciples, from whom they had received baptism; Cedon, the blind man whom our Saviour had restored to sight; and Marcella, the handmaiden who attended on the two sisters, were by the Jews set adrift in a vessel without sails, oars, or rudder; but, guided by Providence, they were safely borne over the sea till they landed in a certain harbour which proved to be Marseilles, in the country now called France.
womenpriests.org/magdala/aurea.asp
Life of Mary Magdalen
from the Legenda Aurea (13th century) by Jacopo di Voragine. See Mary Magdalen. The Saints in Legend and Art, vol.5, by J. H. Emminghaus. Text of story and legend by Leonhard Küppers. Aurel Bongers, Recklinghausen 1964.
According to this legend Mary Magdalene died in Aix in Southern France and was buried there by the Bishop Maximinus. Some of her remains later were taken to the French monastery of Vezelay, the church of which carried her name. The Legend continues