diff --git a/src/app/shared/components/signup-modal/signup-modal.component.ts b/src/app/shared/components/signup-modal/signup-modal.component.ts
index 128646d1b68fc4c64146b36cfb96170aef3b6259..1ca87953b19854e30a5eb0cffbdcb2f70105df2b 100644
--- a/src/app/shared/components/signup-modal/signup-modal.component.ts
+++ b/src/app/shared/components/signup-modal/signup-modal.component.ts
@@ -15,7 +15,6 @@ export class SignUpModalComponent implements OnInit {
   public loading = false;
   public submitted = false;
   public authFailed = false;
-  public returnUrl: string;
   public isShowPassword = false;
   constructor(
     private formBuilder: FormBuilder,
@@ -32,8 +31,6 @@ export class SignUpModalComponent implements OnInit {
       email: ['', [Validators.required, Validators.pattern(CustomRegExp.EMAIL)]],
       password: ['', [Validators.required, Validators.pattern(CustomRegExp.PASSWORD)]],
     });
-    // get return url from route parameters or default to '/'
-    this.returnUrl = this.route.snapshot.queryParams['returnUrl'] || '/';
   }
 
   // getter for form fields
@@ -68,7 +65,7 @@ export class SignUpModalComponent implements OnInit {
       .pipe(first())
       .subscribe(
         () => {
-          this.router.navigate([this.returnUrl]);
+          this.router.navigate([this.router.url]);
           this.closeModal();
         },
         () => {