For my application, we need to use to use IDs for our documents are that obfuscated as a specially encoded string. For the sake of example (this isn't our actual encoding scheme), let's say that the Product with an ID of 2 is encoded as 'B'. I want to change links generated to that product from the default
/admin/collections/users/2
to this
/admin/collections/users/B
AfterReadHook makes changing the display/output easy. How can I mutate the incoming id value so that forms and links within Payload still work normally? Is this even possible without a source code modification?
#How to mutate input before DB lookup?
1 messages · Page 1 of 1 (latest)