add {dirname} and {basename} context to PAGINATION_PATTERNS settings