Commit ccd95779 by GD-A-150752

navigate-back-default-url

parent 21e25c30
...@@ -64,8 +64,15 @@ export class MessageEngineComponent extends BaseComponent implements OnInit { ...@@ -64,8 +64,15 @@ export class MessageEngineComponent extends BaseComponent implements OnInit {
} }
goBack(): void { goBack(): void {
const url = `${environment.baseUrl}ApplicantPortal-JobApplication.htm?cms.rm=Page&JobID=${this.jobApplicationID}`;
if (window.history.length > 2) { if (window.history.length > 2) {
const cur_path = this.location.path();
this.location.back(); this.location.back();
if (cur_path === this.location.path()) {
window.location.href = url;
}
} else {
window.location.href = url;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment