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

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,898)