diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index 557b37ca..87b597d5 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -488,5 +488,17 @@ export class WorkflowGenerator { } } - -} + /** + * Notifies the client about the change of the url if navigation + * happens after some performed action. + * @param url The new url. + * @param fromNavBar Whether the navigation is from the simulated browser's navbar or not. + * @returns void + */ + public notifyUrlChange = (url:string) => { + if (this.socket) { + this.socket.emit('urlChanged', url); + } + } + +} \ No newline at end of file