Why doesn't this USB PCB layout work?
I suspect that the way you have wired it from one connector to the other hasn't taken into account that you need to swap D+ and D- over i.e. you have inadvertently inverted the data. You may also need to do this for ground and Vcc.

It's impossible to be more certain given that you haven't shown a schematic.