kim_purcell
Kilo Explorer

If your Back to Catalog button in the Service Catalog on Eureka seems to have a mind of its own — for example, like jumping back from the technical catalog to the service catalog home page — this may be because your back buttons are incorrectly sending you to the default catalog home page during checkout. This can be quite annoying if you just want to make one minor adjustment before checking out.

To correct this (and avoid future headaches), you can change the Jelly code for the order status and two-step checkout pages. This should allow you to navigate back to the previous page without issues.

To redirect the Back to Catalog button:

For the order status page:

  1. Go to System UI > UI Page.
  2. Select com.glideapp.servicecatalog_checkout_view
  3. Change this line:

    var backToCatalogAction = "location='" + GlideappCatalogURLGenerator.getHomeURL(null, 'catalog_default', null) + "'";

    To:

    var backToCatalogAction = "location='" + GlideappCatalogURLGenerator.getHomeURL(jelly.sysparm_catalog, jelly.sysparm_catalog_view, null) + "'";

UI Page screenshot.png


For the two-step checkout:

  1. Go to System UI > UI Macro.
  2. Select servicecatalog_cart_template
  3. Change this line:

    var backToCatalogAction = "location='" + GlideappCatalogURLGenerator.getHomeURL(null, 'catalog_default', null) + "'";

    To:

    var backToCatalogAction = "location='" + GlideappCatalogURLGenerator.getHomeURL(jelly.sysparm_catalog, jelly.sysparm_catalog_view, null) + "'";


Note: Remember to update records from the sys_update_xml table for these files if you require future updates.

For more information, see:

"Back to catalog" button redirects to the incorrect catalog

Jelly Tags