Thanks! I didn't notice before since it doesn't mention path blocks in the title.
It does NOT work on all solid blocks. There are some like Cherry blossoms (you might have to use tick freeze or setblock command) and Glow Lichen that it doesn't work with. It DOES however work on Cacti and cobwebs and chests and I could go on and on (there are about 40 block types it works on)
Try doing this with a minecart at the coords where you'll place the path block to find another glitch