Showing results for 
Search instead for 
Did you mean: 
Post Patron
Post Patron

Redirecting to wrong URL after clicking a link in HTML text or rich text editor


I have a multi-line enhanced rich text column in share point, I have entered few URLs pointing to our share point online sites. When i see these links in display mode in html text field or rich text editor field, part of the URL is replaced. eg. is changed to I have this app built in my personal test environment, I am not sure if this is because of the environment its built in.

When I type other URLs, e.g. they work fine.

Community Support
Community Support

Hi @ck25415,


Which control is used to display the the Rich Text from Sharepoint site?


If the URL is for SharePoint site internal usage, then please consider switch it to the Shared URL, then check to see if that would work.




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Michael,


I am using html text field and rich text editor fields in powerapps to display the URLs. Users enter text along with some links in a rich text editor field in powerapps which is seen by the manager of user in a rich text editor field/html text field in view mode. When the manager clicks the link it goes nowhere as the prefix of the URL is replaced as mentioned above. I did not udnerstand swtiching the URL to shared URL, could you explain.



I encoutered this problem this morning. The following code is bring concatendated to the beginning of my Urls  -----> And what makes this crazy is that I am not in Canada.


Everything was working fine for months. Now all my links back to our internal SharePoint site are broken.


Did you find a solution to this problem? If so, can you share?


Hello @Shawnice ,


As far as I know the issue still exists. Here is the link to powerapps idea post about the same issue, please vote. 



This is an older thread - but wanted to post the fix for this. 

The clip shows for images, but the same rule applies for internal links. PowerApps strips out your tenant - but resolve as below.


The answer is to use 'Substitute' in your html text - I use Substitute(ThisItem.myText, '/sites/','/')

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,194)