Skip to content
Snippets Groups Projects
Commit 2f35ed60 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

Merge branch 'exception' into 'develop'

exception for search redirect

See merge request R3/howto-cards!146
parents 2ac24397 ad8ab062
No related branches found
No related tags found
No related merge requests found
...@@ -44,8 +44,9 @@ if (sub.length > 0) { ...@@ -44,8 +44,9 @@ if (sub.length > 0) {
if (status == 200) { // The sub-card is internal and accessible if (status == 200) { // The sub-card is internal and accessible
RedirectTo(internalCardURL); RedirectTo(internalCardURL);
} else { } else {
// No external, no internal - probably no access if (!sub.includes('search_query')) { // do not redirect when a search is performed
RedirectTo('/404.html'); RedirectTo('/404.html'); // No external, no internal - probably no access
}
} }
}) })
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment