Not redirecting to login page when clicking start learning

I have frappe LMS as the default homepage in my website
I have some courses and lessons in it
when user click start learning from any course it redirect to login page but when we click the start learning from the course lesson page it come back to course preview page.

To Reproduce
Set the LMS as the default homepage
tap on any course
tap on any lesson
it will show start learning
Press start learning button
It will redirect back to course page

Expected behavior
When Click the start learning button it should redirect to login page not back to course page.


  • OS: [Ubuntu 24]
  • Browser [Firefox]
  • Version [125.0 (64-bit)]


  • Device: [Poco X6 Pro, Iphone 14Pro, Oneplus 9Pro]
  • OS: [Android 14 , Android 13, Ios17.4 ]
  • Browser [Chrome , Safari , Brave]
  • Version [124, 17.4, 1.64]