The exit function with boolean parameters works fine.
But is there a way where Exit() can close the tab.
Right now it redirects to home.dynamics.com
Any ideas?
Thanks,
S.
Launch("https://your.redirect.link", Blank(), LaunchTarget.Replace)
@ron_zw as of May 2023, this one still works!!!
My HTML page is just a minimal HTML page with a script block in the HEAD.
The script block only contains:
window.opener = null;
window.close();
This first line is probably missing in your code @GrischkePro
@mdocter I tried your test app and it works perfectly and I was applying the solution correctly in my app, but the close button will just not work. It opens a blank site with the JS code as it should but the tab won't close. It just stays open. I wonder if it's something to do with the size of my app, cache etc. Weird.
@mdocter thanks for looking into this for me. I think it’s my “close window” script that might be the problem. What’s the script that you’re using?
Hi @GrischkePro , I created a small proof of concept (see attachment) and this works fine for me. It contains a single screen with a single button which closes the current window when clicked. So if this doesn't work for you, something else should be causing the strange behavior. Maybe some browser extension? Or enforced corporate policies?
Hi@GrischkePro , I totally forgot. Sorry for that. I still need to create the PoC and make it available for download. I noticed that the app I created it for still works. So it's old behavior should be the same. I hope to find some time this weekend. @
Hey, did you manage to have a look at this for me?
Hi @GrischkePro, I'm on a holiday, so can't test right now. Maybe there was a change in the runtime? Next week, when I'm back online, I'll make a small proof of concept app to validate it's old behavior. Sorry I can't help you sooner.
@Maarten_Docter this doesn't seem to work for me 😞
While editing the app, the close button opens and closes a new window, but when published, it opens a blank page. I tried your URL and my URL. When I open the URL in a new window, it works. It doesn't work in the same window 😕
Any ideas?
Hi @Anonymous
Exit(false) didn't really work for me. But this work for me.
Launch('https://your.redirect.link", Blank(), LaunchTarget.Replace)
Regards
Ron
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2