Skip to content

Commit

Permalink
fix: Add repo query param to start-track-button component
Browse files Browse the repository at this point in the history
Updated the start-track-button component to include a 'repo' query param when transitioning to the course route if the user is not anonymous. This change allows for better handling of repository information in the transition.
  • Loading branch information
andy1li committed Dec 31, 2024
1 parent e8fae04 commit bd36fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/track-page/start-track-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class CourseOverviewStartTrackButtonComponent extends Component<S
if (this.currentUserIsAnonymous) {
this.authenticator.initiateLogin(null);
} else {
this.router.transitionTo('course', this.args.courses[0]!.slug, { queryParams: { track: this.args.language.slug } });
this.router.transitionTo('course', this.args.courses[0]!.slug, { queryParams: { repo: null, track: this.args.language.slug } });
}
}
}
Expand Down

0 comments on commit bd36fa6

Please sign in to comment.