cms
cms copied to clipboard
bug: Search lecture feature is not working
Describe the bug The bookmarked contents' links on the Bookmarks('/bookmark') page are not working properly. It is being redirected to the Home('/home') page.
To Reproduce Steps to reproduce the behavior:
1.Search any content from search bar.
2.Click on the content. You will be redirected to the Home page instead of the content's page.
Expected behavior The user should be directed to the page of the content instead of the Home page.
Info
Browser [firefox]
- I have reproduced the behavior that is mentioned in the issue. But I don't really think it is a bug (#1855).
- I have looked into the code, and it seems fine.
- But as I look into the behavior, it seems like when we are trying to search for any topic, the search suggestions are shown irrespective of the user's cohort. So we are unknowingly clicking on the other cohort's related topic, for which we don't have access, so we are being redirected to the home page when trying to access the unauthorized content through search results (unknowingly).
Below is the video reference of me trying to access the Prisma content of other cohorts initially through search results, but redirected to the home page. But as I access the proper Prisma content of my accessible cohort I am getting the content back.
https://github.com/user-attachments/assets/6334458d-5f55-4020-a3b4-53b038b606cc