Hi all,
I'm fairly new to PowerApps.
I have a gallery of buttons (for a Table of Contents type thing) that are populated from a list (which contains a 'Link' column). I would like the buttons to open the link within the same tab.
After researching how to potentially open links in the same tab, I set the onSelect to:
Launch(ThisItem.Link, {}, LaunchTarget.Replace)
However, when I publish the app and test it in the real world, I get the following error in the console (also in screenshot):
Unsafe attempt to initiate navigation for frame with origin 'https://x.sharepoint.com' from frame with URL [long-URL]. The frame attempting navigation of the top-level window is sandboxed, but the flag of 'allow-top-navigation' or 'allow-top-navigation-by-user-activation' is not set.
I tried the launch function without the last 2 arguments, and the link opens in a new tab, as expected.
Is there something obvious I'm missing to allow me to open links in the same tab?
If the pasted graphics are hard to see, I also attached the screenshot images.
Thanks so much.
Bumping again for visibility.
Does anyone have insight on this issue?
Bumping for visibility (sorry if this is not allowed)...
Any guidance would be so much appreciated.
WarrenBelz
146,631
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,991
Most Valuable Professional