File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { getServerSession } from 'next-auth/next'
2222import { acronym } from '../lib/acronym'
2323import ErrorPage from '../components/ErrorPage'
2424import { GetServerSidePropsContext } from 'next'
25+ import querystring from 'querystring'
2526
2627interface MyDashboardProps {
2728 locale : string
@@ -154,13 +155,10 @@ export async function getServerSideProps({
154155 query : GetServerSidePropsContext [ 'query' ]
155156} ) {
156157 const session = await getServerSession ( req , res , authOptions )
157- const { endpoint } = query
158+ const { link } = query
158159
159160 // special handling for redirects from ecas
160- const params = new URLSearchParams ( )
161- if ( endpoint ) {
162- params . append ( 'endpoint' , endpoint . toString ( ) )
163- }
161+ const params = link ? querystring . stringify ( query ) : ''
164162
165163 if ( ! AuthIsDisabled ( ) && ! ( await AuthIsValid ( req , session ) ) )
166164 return {
You can’t perform that action at this time.
0 commit comments