Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Verified Commit ad8ab062 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

exception for search redirect

parent 2ac24397
Pipeline #28437 passed with stages
in 1 minute and 14 seconds
......@@ -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
}
}
})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment