Description
Back to Catalog and Continue Shopping buttons are not working on the "com.glideapp.servicecatalog_checkout_view" UI page.
Steps to Reproduce
- Navigate to "com.glideapp.servicecatalog_checkout_view" UI page and enable the Back to Catalog and Continue Shopping buttons:
- Search for this line: <j2:if test="$[!GlideTransaction.get().isVirtual()]">
- Replace it with the following: <j2:if test="$[!GlideTransaction.get().isVirtual() || SNC.CatalogCMS.isCMSSite()]">
- Navigate to My Orders iFrame (which is called from the order_status content page):
/nav_to.do?uri=content_block_iframe.do?sys_id=6fc9b0d90a00072214859a52531e3e58 - Replace the URL:
From: sc_req_item_list.do?sysparm_query=request.requested_for=javascript:gs.getUserID()^active=true^EQ&sysparm_view=ess
To: sc_request_list.do?sysparm_query=requested_for=javascript:gs.getUserID()^active=true^EQ&sysparm_view=ess - Navigate to CMS (for example, https://<instance>.service-now.com/ess).
- Go to Account Settings > Open Orders. Select any request.
- Note that nothing happens when attempting to click the Back to Catalog or Continue Shopping buttons:
- Note that the Warning log shows this error:
java.lang.NullPointerException
Caused by error in Script Include: 'GlideappCatalogURLGenerator' at line 96
93: return SNC.CatalogURLGenerator.getBrowsingContextCategorySysID();
94: }
95: GlideappCatalogURLGenerator.getContinueShoppingUrl = function(catalogID, catalogView) {
==> 96: return SNC.CatalogURLGenerator.getContinueShoppingUrl(catalogID, catalogView);
97: }
Workaround
This issue is caused by a customization that is not supported by ServiceNow.
Related Problem: PRB631629