Dynamic `pathPattern` as described in the tutorial

The tutorial talks about dynamic `pathPattern`, although the code examples do not include this dynamic pattern. This seems to be an error.