Restored custom_slug functionality, fixes #2761

:+1: for this approach.  Makes it much easier to read.