diff --git a/src/main/webapp/app/lti/lti13-exercise-launch.component.ts b/src/main/webapp/app/lti/lti13-exercise-launch.component.ts index 28605d6620e6..8a70a92af447 100644 --- a/src/main/webapp/app/lti/lti13-exercise-launch.component.ts +++ b/src/main/webapp/app/lti/lti13-exercise-launch.component.ts @@ -148,7 +148,12 @@ export class Lti13ExerciseLaunchComponent implements OnInit { replaceWindowLocationWrapper(url: string): void { this.ltiService.setShownViaLti(true); this.themeService.applyThemePreference(Theme.LIGHT); - const path = new URL(url).pathname; + let path; + if (url === '/lti/select-course') { + path = url; + } else { + path = new URL(url).pathname; + } this.router.navigate([path], { replaceUrl: true }); }