also looking at this
fix(auth): send people to their reports, and make a dead redirect fail the build
#34
5 files
+59
-16
| @@ -17,7 +17,7 @@ const signedIn = session.user !== null | ||
| 17 | 17 | {{-- Already signed in: bounce before anything paints, the same way the |
| 18 | 18 | guard does in the other direction. --}} |
| 19 | 19 | @if (signedIn) |
| 20 | <script>window.location.replace('/projects')</script> | |
| 20 | <script>window.location.replace('/reports')</script> | |
| 21 | 21 | @endif |
| 22 | 22 | |
| 23 | 23 | <script>document.documentElement.setAttribute('data-session-cookie', {{ cookieName }})</script> |
| @@ -130,7 +130,7 @@ const signedIn = session.user !== null | ||
| 130 | 130 | if (res.ok) { |
| 131 | 131 | // replace, not assign: the back button should not return to a sign-in |
| 132 | 132 | // form the person has already used. |
| 133 | window.location.replace('/projects') | |
| 133 | window.location.replace('/reports') | |
| 134 | 134 | return |
| 135 | 135 | } |
| 136 | 136 | |