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
1 merge request!983feat(dashboard) : create dashboard !
Pipeline #124484 passed
......@@ -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.
Finish editing this message first!
Please register or to comment