Umbraco 13 How to get domain specific url from RTE

My application has multi domain in an single instance. The link is RTE is picked from other domain node. The same path exists in both domain. The link is taking the current domain.
It did added the absolute URL in backoffice → a href="/{localLink:umb://document/5b8fcf1fa64546b289f9f27e2be5da5a}
I need help to find a logic to have normal URL with correct domain in the RTE links in the webpage.

When content is being converted to IPublishedContent models for the frontend all properties go through valueConverters. For the RTE they go through a few different ones, but one of them is this text value converter which uses a local link parsers to convert the localLink version you see to the real link:

Umbraco-CMS/src/Umbraco.Core/PropertyEditors/TextStringValueConverter.cs at release-13.8.0 · umbraco/Umbraco-CMS

So how are you getting the RTE data which contains the localLink before it was converted?

Thanks for the reply and Sorry Jesper,
My question was misunderstood. I’m getting the proper URL from RTE data.
But i’m expecting below one.

In my application, I have configured multiple cultures and hostnames for an Umbraco page as follows:

In my RTE, I have added this policy page as a link.

  1. When accessing the policy page from a specific domain, the policy page URL should point to that specific domain. For example, if I am using test1.com, the expected policy page URL should be test1.com/policy. However, it always renders as test.com/policy. It seems to always return the first URL from the culture and host configuration. Is it possible to get the domain-specific URL from the RTE?
  2. I have another question. If my culture and hostnames are not defined for an Umbraco page, I get the page URL like hostname/general/policy.

Here is my page setup in Umbraco:

settings (culture and hostnames set for root node)    
          |    
          |__General (Folder)            
                  |            
                  |__Policy (page)

This setup works well. However, when we define the culture and hostnames, we only get the defined culture and hostnames, and not the URL like ‘hostname/general/policy’. Is it possible to get the path URL, even when we have defined the culture and hostnames, like ‘hostname/general/policy’?