codeforcauseorg / edu-client

Product focuses on 100% education as well as upskilling developing countries and rural areas.
https://educlient.codeforcause.org/
MIT License
128 stars 148 forks source link

Redirected to the "Home page" on reloading page #400

Open Abhijay007 opened 2 years ago

Abhijay007 commented 2 years ago

Describe the bug

when the user reloading the "wishlist" and " post doubt" page in order to see the latest result then it will redirect user to the home page.

To Reproduce

Steps to reproduce the behavior:

  1. open the website click on the wishlist section and refresh the page.

Expected behavior

update the results on refresh.

Environment (please complete the following information):

Additional context

ezgif com-gif-maker (1)

cc: @Abhishek-kumar09 @adarsh-technocrat

Abhishek-kumar09 commented 2 years ago

@adarsh-technocrat Is it because due to the redirection code we are using where we are pushing people to home (Intented for login/logout check)?

adarsh-technocrat commented 2 years ago

Yes @Abhishek-kumar09 this because of protected routes code !

adarsh-technocrat commented 2 years ago

@Abhishek-kumar09 i'll work on this issue :)

yashvardhan05 commented 2 years ago

Can i work on this?

adarsh-technocrat commented 2 years ago

sure @yashvardhan05 :)

adarsh-technocrat commented 2 years ago

Hey, @yashvardhan05 please let me know if you are stuck anywhere :)