diff --git a/src/app/profile/dashboard/orientation-details/orientation-details.component.ts b/src/app/profile/dashboard/orientation-details/orientation-details.component.ts index 7d2946bc5a605fd46620353981149854b2855806..1f77c9b7f5db5269dd24ece36f111686ccc4887b 100644 --- a/src/app/profile/dashboard/orientation-details/orientation-details.component.ts +++ b/src/app/profile/dashboard/orientation-details/orientation-details.component.ts @@ -53,6 +53,12 @@ export class OrientationDetailsComponent implements OnInit { } }); + // if coming from the email (with a URL like /details-orientation/[orientationID]#to) + const hash = this.router.parseUrl(this.router.url).fragment; + if (hash === 'to') { + this.from = 'todoOrientations'; + } + this.profileService.getProfile().then((profile) => { this.userProfile = new User(profile); });