Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample site Dashboard link back button is broken #2

Open
ericshively opened this issue Dec 23, 2020 · 4 comments
Open

Sample site Dashboard link back button is broken #2

ericshively opened this issue Dec 23, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@ericshively
Copy link

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 pplonski added the bug Something isn't working label Dec 23, 2020
@pplonski pplonski self-assigned this Dec 23, 2020
@pplonski
Copy link
Contributor

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

@Elabbasy00
Copy link

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

   if (this.props.history.location.pathname === "/login") {
        this.props.history.push("/");
      }

@pplonski
Copy link
Contributor

Thank you @Elabbasy00!

@Elabbasy00
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants