We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c154968 + 09445c7 commit a4c9bfaCopy full SHA for a4c9bfa
components/courseSelector.js
@@ -63,7 +63,11 @@ function CourseSelector() {
63
) {
64
return (
65
<Nav.Item>
66
- <Link href={`/courses/${enrollments[0].course.slug}`} passHref>
+ <Link
67
+ href={`/courses/${enrollments[0].course.slug}`}
68
+ passHref
69
+ legacyBehavior
70
+ >
71
<Nav.Link>{enrollments[0].course.name}</Nav.Link>
72
</Link>
73
</Nav.Item>
pages/api/auth/[...nextauth].js
@@ -128,6 +128,9 @@ export default NextAuth({
128
returnVal = absUrl;
129
}
130
// maybe this was blocking me from reaching auth??
131
+ if (returnVal.includes('/auth/signout')) {
132
+ returnVal = '/';
133
+ }
134
return returnVal;
135
},
136
async session({ session, token, user }) {
0 commit comments