diff --git a/assets/js/router.js b/assets/js/router.js
index a1e98fe6c7e10e026e0184f7e1756311a07b9136..7bc8757c7a0d83c6cdac330732dda7a30de7cb3e 100644
--- a/assets/js/router.js
+++ b/assets/js/router.js
@@ -44,8 +44,9 @@ if (sub.length > 0) {
                 if (status == 200) { // The sub-card is internal and accessible
                     RedirectTo(internalCardURL);
                 } else {
-                    // No external, no internal - probably no access
-                    RedirectTo('/404.html');
+                    if (!sub.includes('search_query')) { // do not redirect when a search is performed
+                        RedirectTo('/404.html'); // No external, no internal - probably no access
+                    }
                 }
             })
         }