Redirect page from UI action

Jolanta Jaskele
Kilo Contributor

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:

find_real_file.png

 

Is there a way to redirect it without backend navigator and etc? It has to be the same tab

 

1 ACCEPTED SOLUTION

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.

View solution in original post

11 REPLIES 11

Mohith Devatte
Tera Sage
Tera Sage

hello @Jolanta Jaskelevičiūtė ,

can you post the URL that you have built ?may be i can help. if i see the URL

Jolanta Jaskele
Kilo Contributor

window.location.href = 'srcm?id=form_tabbed_contract&table=ast_contract&sys_id=' + g_form.getUniqueValue();    

@Jolanta Jaskelevičiūtė 

window.location.href = '/srcm?id=form_tabbed_contract&table=ast_contract&sys_id=' + g_form.getUniqueValue();    

try this

Jolanta Jaskele
Kilo Contributor

no, it doesn't work 😞 in this case, nothing happens