- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 04:58 AM
Hello,
I try to redirect from backend to portal in the same page by using:
window.location.href = 'url';
and I get redirected like this:
Is there a way to redirect it without backend navigator and etc? It has to be the same tab
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 06:16 AM
Hmm, I think I misunderstood, so you just want the whole page to reload to the portal without the nav bar?
Try this:
window.top.location.href = url
The key difference here is that we are now reloading the TOP frame as opposed to just the gsft frame.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 05:08 AM
hello
can you post the URL that you have built ?may be i can help. if i see the URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 05:11 AM
window.location.href = 'srcm?id=form_tabbed_contract&table=ast_contract&sys_id=' + g_form.getUniqueValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 05:17 AM
window.location.href = '/srcm?id=form_tabbed_contract&table=ast_contract&sys_id=' + g_form.getUniqueValue();
try this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2022 05:26 AM
no, it doesn't work 😞 in this case, nothing happens