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

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

Hello,

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. https://contoso.sharepoint.com/sites/test is changed to https://prod-westus2.azureedge.net/sites/test. 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. https://www.google.com they work fine.

Thanks,
5 REPLIES 5
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.

 

Regards,

Michael

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.

 

Thanks,

I encoutered this problem this morning. The following code is bring concatendated to the beginning of my Urls  -----> https://powerapps-ux-prod-canadaeast.azureedge.net. 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. 

 

Thanks,

This is an older thread - but wanted to post the fix for this. https://www.youtube.com/watch?v=cyLW5w3Grdg 

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/','/myo365tenant.sharepoint.com/sites/')

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (67,088)