WCMS-36 used the uri request referer path check to make sure that the cancel button won't redirect to the new service/department/group page but will rather go back to the index page.