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

No redirect on incorrect URL #1

Open
ShirinovAdil opened this issue May 9, 2021 · 0 comments
Open

No redirect on incorrect URL #1

ShirinovAdil opened this issue May 9, 2021 · 0 comments

Comments

@ShirinovAdil
Copy link

When going to the URL path that doesn't exist, a spinner with Page not found appears and keeps spinning. There is no auto redirection nor menu to navigate to the homepage.
102859703-d57b6c80-4445-11eb-9eb8-44df4c0ff0ee

Potential issue source code
I believe the issue is on the React side, precisely
https://github.com/goupaz/jobhax/blob/master/jts/frontend/src/components/App/App.jsx line 626-638

if (this.state.isAuthenticationChecking)
      return <Spinner message="Connecting..." />;
    else if (isUserLoggedIn && !this.state.active)
      return <Spinner message="Reaching your account..." />;
    else if (!this.pages.includes(page))
      return <Spinner message="Page not found!" />;
    else if (logout && page == "/home")
      return <Spinner message="Logging out..." />;
    else if (
      isUserLoggedIn &&
      this.state.active &&
      this.cookie("get", "jobhax_access_token")
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant