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

Fix contributor welcome redirect #197

Merged
merged 3 commits into from
Nov 11, 2022

Conversation

mstone121
Copy link
Contributor

@mstone121 mstone121 commented Nov 10, 2022

Overview

This PR updates the login redirect for contributors so they are taken to the welcome page if they select a utility that has no submissions.

It also updates the navbar to render on only on explicitly listed pages. This keeps it from flashing when the contributor is redirected to /welcome.

Closes #190

Notes

Having /draw in /submissions like /submissions/4/draw would simplify how the navbar is included and would help with solving #184.

Testing Instructions

Checklist

  • fixup! commits have been squashed
  • CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines
  • README.md updated if necessary to reflect the changes
  • CI passes after rebase

@mstone121 mstone121 force-pushed the ms/fix-contributor-welcome-redirect branch from ca3af77 to 6359528 Compare November 10, 2022 22:27
Copy link
Contributor

@rajadain rajadain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 tested, nice fix! I wouldn't've guessed it was the route definitions at play!

Matt Stone added 3 commits November 11, 2022 09:55
This keeps the NavBar from flashing when redirecting to Welcome for
contributors.
@mstone121 mstone121 force-pushed the ms/fix-contributor-welcome-redirect branch from 6359528 to 2693db8 Compare November 11, 2022 15:56
@mstone121 mstone121 merged commit fc491db into develop Nov 11, 2022
@mstone121 mstone121 deleted the ms/fix-contributor-welcome-redirect branch November 11, 2022 16:16
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

Successfully merging this pull request may close these issues.

Contributor Not Redirected to /welcome Upon Login
2 participants