Redirect to a blank page

Pedro Nascimen1
Tera Contributor

Hello,

I've a UI action to request for approval after a normal change has been raised, of course when you raise a normal change a specific workflow starts and waits for that action to proceed.

The problem is when you request for approval it always redirects to a blank page.

This is the original code:

current.approval = "requested";

current.update();

action.setRedirectURL(current);

//action.setReturnURL(current);

I also tried a lot of different things, for instance:

var urlDirect = gs.getProperty("glide.servlet.uri") + "/nav_to.do?uri=" + current.sys_class_name + ".do?sys_id=" + current.sys_id;

current.approval = "requested";

current.update();

action.setRedirectURL(urlDirect);

//action.setReturnURL(urlDirect);

None of the approaches worked, always the same thing, it redirects to a blank page.

Any ideas or work around to solve this?

14 REPLIES 14

Pedro,   I had the exact same issue.   Like you I was trying various fixes with the redirectURL with NO success.   I also was thinking it might somehow be workflow related.   Then I found this... set property to "Turn off Engines" and it works.  



Thanks for your post!



Johnny Quinonez


Forgot to mention... I think you should be okay setting this property.   I'm in the process of testing our sub-prod for Jakarta upgrade and so far its working well.



JQ


Hi Johnny,



Thanks for your answer, I'm glad to have helped you.
Yeah, I've done this change a few weeks ago and I didn't notice anything weird on the approvals workflows since then.



Cheers,
Pedro


I'm running into this same issue. Where did you both find the "Turn off engines" property? Thanks in advance!

I have the same issue with my custom UI Action. Do you think this is related to the same issue?

 Here is the link to my question.

https://community.servicenow.com/community?id=community_question&sys_id=b98ff243db6674d0770be6be1396...

 

Here is what I see in the property for this table.

 

find_real_file.png