You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although I just stumbled upon an issue when trying to make over 10 duplicates of the same slug while maintaining the uniqueness of each one.
I used the following setup for my feild : slug: { type: String, require: true, unique: true, slug: 'name', slug_padding_size: 0, },
after digging a little in the code, I found that you extract the latest document using a sort of the slugified field, and then it all made sense.
the order of slug-something-9 is higher than slug-something-10 hence it always returns the item number nine.
I recommend chaining this option behind the find one:
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for this nice plugin, it's amazing.
Although I just stumbled upon an issue when trying to make over 10 duplicates of the same slug while maintaining the uniqueness of each one.
I used the following setup for my feild :
slug: { type: String, require: true, unique: true, slug: 'name', slug_padding_size: 0, },
after digging a little in the code, I found that you extract the latest document using a sort of the slugified field, and then it all made sense.
the order of
slug-something-9
is higher thanslug-something-10
hence it always returns the item number nine.I recommend chaining this option behind the find one:
The text was updated successfully, but these errors were encountered: