When slugs change, it'd be nice to still find it though an old slug. Example:
var paul = new Model({ name : 'paul' }).save() // slug: paul
paul.name = 'george'
paul.save() // slug: george
Model.findBySlug('paul') // still returns paul, even though the slug is now george
Would probably be implemented with a slugHistory field array that tracks all past slugs
Any interest in a pull request for this?
When slugs change, it'd be nice to still find it though an old slug. Example:
Would probably be implemented with a slugHistory field array that tracks all past slugs Any interest in a pull request for this?