Plugin that rewrites path to blocks with block hierarchy