diff --git a/src/Controllers/CodeController.php b/src/Controllers/CodeController.php
index <HASH>..<HASH> 100644
--- a/src/Controllers/CodeController.php
+++ b/src/Controllers/CodeController.php
@@ -57,7 +57,7 @@ class CodeController extends Controller
             'backButton'  => $this->config['back-button'],
             'showButton'  => $this->config['show-button'],
             'hideButton'  => $this->config['hide-button'],
-            'redirectUrl' => $this->config['redirect-url'],
+            'redirectUrl' => session()->get('intended.url', $this->config['redirect-url']),
         ]);
     }
 
diff --git a/src/UnderConstruction.php b/src/UnderConstruction.php
index <HASH>..<HASH> 100644
--- a/src/UnderConstruction.php
+++ b/src/UnderConstruction.php
@@ -35,6 +35,7 @@ class UnderConstruction
         }
 
         if (! $this->hasAccess($request)) {
+            session(['intended.url' => url()->current()]);
             return new RedirectResponse('/under/construction');
         }
Redirect to the intended url following a correct code entry