Indeed. Yes it was offside (the player who put the ball in the net as he was “gaining an advantage by being in that position”) and the assistant has made an error. But you are right-people (not only on here) take pleasure in slagging off the officials while not even knowing the offside rule...