Skip to content
Snippets Groups Projects
Commit fb314c73 authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

Hash fragment to manage the context for links in emails

parent 373f2178
No related branches found
No related tags found
2 merge requests!993Notif,!983feat(dashboard) : create dashboard !
......@@ -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);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment