When you add an item to the Rich Text field, you can use FieldRenderer to render the output - Sitecore will automatically create the correct URL. This way you donβt even have to worry about the URL.
The FieldRenderer control can be used as follows:
<sc:FieldRenderer ID="renderer" runat="server" FieldName="fieldname" />
Or if you are using XSLT:
<sc:text field="fieldname" />
In codebehind you can do something like
FieldRenderer.Render(Sitecore.Context.Item, fieldname);
source share