I have a template which contains a General Link field. If a new item is created of that template, then the link field should be populated with the item's current path.
Suppose, template A have a general link field called CTA. Every time a new item is created using template A that CTA field is populated with the item's path.
How to achieve this functionality? Thanks for the help.
Update based on comments below:
I was thinking to perform this at rendering time but now I am looking something at the template level. Whenever a new item is created of that template, the CTA field populated with the item's current path. That's why I asked if we can create a custom token for general link field or not? –