saasitive / django-react-boilerplate

DIY Django + React Boilerplate for starting your SaaS
https://saasitive.com
MIT License
596 stars 89 forks source link

Sample site Dashboard link back button is broken #2

Open ericshively opened 3 years ago

ericshively commented 3 years ago

When entering the sample site https://boilerplate.saasitive.com/ , I select the Dashboard button and arrive at https://boilerplate.saasitive.com/login?next=/dashboard . But when trying to use the back button on both Firefox and Chrome, nothing happens, and a user can't navigate back to main page without modifying the URL.

pplonski commented 3 years ago

Thank you @ericshively for reporting this. Looks like a bug. Will need to check the React code.

Elabbasy00 commented 3 years ago

just add this line's in RequireAuth.js constructor before this.checkAuth();

   if (this.props.history.location.pathname === "/login") {
        this.props.history.push("/");
      }
pplonski commented 3 years ago

Thank you @Elabbasy00!

Elabbasy00 commented 3 years ago

I don't want to open a new issue but I'm tired to deploy on heroku with docker-compose.yml can help ? @pplonski