We offlined but for posterity:

This should work for multiple levels of slashes. See https://github.com/dimagi/commcare-hq/blob/b6e48c6b81bedd8acda1bf35f75f6cc74d1ec447/corehq/apps/app_manager/static/app_manager/js/detail-screen-config.js#L671