"Flow Context" UI Action related link under RITMs doesn't redirect to the respective flow contexts


Description

"Flow Context" UI Action related link under RITMs doesn't redirect to the respective flow contexts.

Affected Plugin: com.glideapp.servicecatalog.flow_designer

Steps to Reproduce

1. On OOB instance, activate plugin: com.glideapp.servicecatalog.flow_designer
2. Open any active applicable RITM record.
3. Click "Flow Context" related link UI action.

Notice it takes you to homepage instead of respective flow context.

---------------------------------------------------------------------------------------------------------------------
Reason being that the UI action script contains the following:
var url = new GlideURL('catalog_flow_context');

instead of:
var url = new GlideURL('catalog_flow_context.do');

GlideURLV3 can't find the URL without ".do" at the end. Madrid doc: https://docs.servicenow.com/csh?topicname=c_GlideURLV3API.html&version=latest#c_GlideURLV3API

Workaround

- Navigate to the flow context UI Action. 

- Add a ".do" to the variable 'url' as shown in the below line

BEFORE: var url = new GlideURL('catalog_flow_context'); 

AFTER: var url = new GlideURL('catalog_flow_context.do');

 

Please note: Kindly revert to OOB UI action post upgrading to fixed version.


Related Problem: PRB1355339