We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abc8628 commit c76fde7Copy full SHA for c76fde7
codebenders-dashboard/app/api/students/[guid]/sis-link/route.ts
@@ -52,7 +52,9 @@ export async function GET(
52
53
// SIS ID is embedded in the URL but never returned as a standalone field
54
const sisId = result.rows[0].sis_id
55
- url = `${sisBaseUrl}?${encodeURIComponent(SIS_ID_PARAM)}=${encodeURIComponent(sisId)}`
+ const urlObj = new URL(sisBaseUrl)
56
+ urlObj.searchParams.set(SIS_ID_PARAM, sisId)
57
+ url = urlObj.toString()
58
} catch (error) {
59
console.error("SIS link lookup error:", error)
60
return NextResponse.json(
0 commit comments