web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / onSelect Button - Laun...
Power Apps
Unanswered

onSelect Button - Launch target in same tab not working

(0) ShareShare
ReportReport
Posted on by 33

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.

 

vjosh_0-1712174365856.png

vjosh_1-1712174372518.png

 

Categories:
I have the same question (0)
  • vjosh Profile Picture
    33 on at

    Bumping for visibility (sorry if this is not allowed)...

     

    Any guidance would be so much appreciated. 

  • vjosh Profile Picture
    33 on at

    Bumping again for visibility.

     

    Does anyone have insight on this issue?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard