try to get redirect to 404 working
This commit is contained in:
parent
2b84d5228b
commit
0d94c1b786
|
@ -76,6 +76,6 @@ Router.map ->
|
||||||
# @route 'running', path: '/running'
|
# @route 'running', path: '/running'
|
||||||
|
|
||||||
@route 'error404', path: '/*path'
|
@route 'error404', path: '/*path'
|
||||||
# @route 'error404', path: '/404'
|
|
||||||
|
|
||||||
`export default Router`
|
`export default Router`
|
||||||
|
|
|
@ -23,8 +23,8 @@ Route = TravisRoute.extend
|
||||||
login = transition.params.owner.owner
|
login = transition.params.owner.owner
|
||||||
|
|
||||||
message = if error.status == 404
|
message = if error.status == 404
|
||||||
# @transitionTo('/404')
|
@transitionTo('error404')
|
||||||
"Couldn't find an owner with login \"#{login}\""
|
# "Couldn't find an owner with login \"#{login}\""
|
||||||
else
|
else
|
||||||
"There was an error while loading data, please try again."
|
"There was an error while loading data, please try again."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user