[1.6.x] Fixed #21560 -- Added missing 'slug' field in example code.

Backport of 744aac6dac from master