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
I'm using Payload as a website and webshop CMS, and I want to create nice looking urls instead of the hash generated, e.g. 646ccdc7a8bf800e7f15592d. Preferably one of these:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Payload as a website and webshop CMS, and I want to create nice looking urls instead of the hash generated, e.g.
646ccdc7a8bf800e7f15592d
. Preferably one of these:I've found two resources:
id
field andslug
fieldI've tried adding hooks to the
id
field without success.How can I create a
id
field that is automatically generated and replaces the hashed id's to be used in querys?Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions