Issue 5728 js error when adding menu links