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

Announcements

News and Announcements icon
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

 

Screenshot 2024-04-03 154925.png
Screenshot 2024-04-03 154436.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard