I don't remember where I saw it but there was a recent request for reports of situations like this, where Waze takes an indirect route around a triangle instead of going straight:
https://www.waze.com/editor/?zoom=5&lat ... TTTFTTTTFT
I have no idea what the problem is. There is one extra junction on the straight route. I hope someone can figure it out.