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
de0acbb5
Unverified
Commit
de0acbb5
authored
Mar 05, 2019
by
Christoph (Sheogorath) Kern
Committed by
GitHub
Mar 05, 2019
Browse files
Merge pull request #1153 from toshi0123/for_empty_serverurl
Fix empty serverURL did not redirect properly
parents
e48342a6
6aab0327
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/response.js
View file @
de0acbb5
...
...
@@ -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