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

[userTypeFix] Error on Redirect if Tab closed and reopened on baseUrl #1775

Closed
GlenDsza opened this issue Mar 23, 2024 · 3 comments · Fixed by #1787
Closed

[userTypeFix] Error on Redirect if Tab closed and reopened on baseUrl #1775

GlenDsza opened this issue Mar 23, 2024 · 3 comments · Fixed by #1787
Assignees
Labels
bug Something isn't working good first issue Good for newcomers GSoC Priority

Comments

@GlenDsza
Copy link

Describe the bug

  • If the user is logged in as user and then closes tab and reopens it from base url (here localhost:4321/) user is redirected to wrong screen causing error.

To Reproduce
Steps to reproduce the behavior:

  1. Login as User
  2. Close the tab
  3. In new Tab enter base url (in this case localhost:4321)
  4. Error is showned

Expected behavior
If we close the tab and reopen baseUrl localhost:4321 then if previously logged in user is (Type) user should redirect to user home screen.

Actual behavior
If we close the tab and reopen baseUrl localhost:4321 then error is shown.

Screenshots

wrong_redirect.mp4

image

Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship PalisadoesFoundation/talawa#359

@GlenDsza GlenDsza added the bug Something isn't working label Mar 23, 2024
@GlenDsza
Copy link
Author

@palisadoes would like to work on this issue

@GlenDsza
Copy link
Author

GlenDsza commented Mar 23, 2024

@palisadoes unable to create PR due to commit workflow scripts checking linting rules. Due to changes of strict linting in #1700 around 271 occurrences of any datatype and linting issues need to be handled across repo before I could push a commit.

image

image

  • How should this be handled, Fix in this PR, separate issue to fix all occurrences of any datatype & linting issues or maybe easing of strict linting rules and then eventually eradicate linting issues to implement strict linting?

@palisadoes
Copy link
Contributor

Linting should be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers GSoC Priority
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants