Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miriam Fougeras
howto-cards
Commits
2f35ed60
Commit
2f35ed60
authored
Jun 16, 2020
by
Laurent Heirendt
✈
Browse files
Merge branch 'exception' into 'develop'
exception for search redirect See merge request
R3/howto-cards!146
parents
2ac24397
ad8ab062
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/router.js
View file @
2f35ed60
...
...
@@ -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
}
}
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment