Redirect to Course page instead of Course list after Student login

I want the site to redirect to https://i***u/courses/icl-online-training-program/ instead of https://i***u/courses/ after the Student logs in to the site.

I added the solution suggested in https://premium.wpmudev.org/forums/topic/wanted-to-change-coursepress-login-redirect-to-some-other-page#post-849822 but it didn't work.