Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Luc Bourdot
codimd
Commits
6aab0327
Commit
6aab0327
authored
Feb 27, 2019
by
toshi0123
Committed by
okochi-toshiki
Mar 04, 2019
Browse files
Fix empty serverURL did not redirect properly
Signed-off-by:
toshi0123
<
7948737+toshi0123@users.noreply.github.com
>
parent
52742477
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/response.js
View file @
6aab0327
...
...
@@ -23,7 +23,7 @@ var response = {
responseError
(
res
,
'
403
'
,
'
Forbidden
'
,
'
oh no.
'
)
}
else
{
req
.
flash
(
'
error
'
,
'
You are not allowed to access this page. Maybe try logging in?
'
)
res
.
redirect
(
config
.
serverURL
)
res
.
redirect
(
config
.
serverURL
+
'
/
'
)
}
},
errorNotFound
:
function
(
res
)
{
...
...
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