If you read the references on the previous conversations you can see that there are two options:
- without custom code (Manually pasting the link) / (Using a reference field picker), or
- with custom code
Which one is better? Well you have to decide that on what is the best for your project.
If you have a specific issue with implementing either option above, please provide further details on what you have attempted/tried, in a new post.