Do not worry , some European companies do this via backstabbing and hiding behind "procedures" and hr behaves like a banana republic court, or wannabe junta. They try to make sure as little as possible is spilled to the public. If they do and if you can, have them fire you and then send the corresponding tribunal after them. Also make sure to post a candid review on glassdoor. Perhaps google and LinkedIn. Do not forg…
Thankfully my own manager (whom I was leaving) had my back and pointed out that since I was leaving for a permanent role (CDI) which my current employer had not yet offered to me in writing (though informally expected me to carry on), I could get around this.
I honestly don't know what they were expecting. How can you carry on working for a company against your will with the threat of being sued if you tried to leave, what sort of a working environment is that?