`dashboard?next=undefined` Issue When Logging in Via Program Learner Portal

Description

Sometimes while logging in via a learner portal on a sandbox environment, the redirects will end up landing the learner on the LMS dashboard, e.g. http://gtx.sandbox.edx.org/dashboard?next=undefined.

It's been proposed that this can happen when working in multiple sandbox environments simultaneously, but we've also heard reports of this occurring on calls with partners, who presumably have only used one sandbox. Since the `?next` query param is probably a JS failure to append a redirect back to the learner portal while sending the user to the `login` URL, it seems like this may be an opportunity for improvement of our default sandbox environment configurations.

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Unassigned

Reporter

Matthew Hughes

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Story Points

None

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Priority

Unset
Configure