I was refereeing a 10 year old's junior game today and this situation happened. The home team's defender attempted to pass from their own half to their forward who was in an offside position beyond the halfway line.
I was going to blow the whistle but the ball deflected off an away defender and then went to the originally offside attacker who put the ball wide.
I viewed this as onside at the time because the ball struck the away team player, however now I think it was offside because at the time of pass, the home player was offside.
Is this offside or not?