My story is very similar to few other mothers in here. I was working on a fixed term contract and it was extended after the initial year and I was told they would make the post permanent.
After four months of the post being extended, I found out I was pregnant and informed them immediately.
Towards the end of my maternity leave they notified me that I had no post to return to and since they cannot terminate the contract whilst I was on maternity, they would extend it by 3 months to cover the entire maternity.
Had I known initially, I would have had time to look out for another role which by the way was difficult to get.
Its frustrating and making me all the more depressed now.