I had created a custom action button, except (edit, delete). I am not redirecting to the link on first click, I have to click it twice to visit the attached…