Announcements
Hi everyoneI have added a powerapp webpart on my site page and want to reload the page / open a page url in same window as my site page on sharepoint online site. I have used the launch function but am unable to achiebe so. Providing LaunchTarget.replace is not working at my end. Any headsup for this would be appreciated
Can you state the exact code you are using that is not working?
------------If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Your code seems fine. I just tested with:
Launch("http://bing.com/search", {}, LaunchTarget.Replace) which works.
Do you get errors in your code? if not then save and publish the App to see if there would be any difference
I did publish the app and am trying with the same codeb ut console shows me the following errorThe 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 have added powerapps on a site page using app id.
is it now working?
No, am getting the above error in console
@shweta1223 ,
Still have this issue? I'm getting the same exact thing... I even tried adding the listID, viewID parameters and all of them give this same error as you stated:
"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."
Sorry, Have you resolved this issue? Can you show me...
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 505
WarrenBelz 502 Most Valuable Professional
Haque 324