Commit 856700d5 authored by Tim Neutkens's avatar Tim Neutkens

Register the right path

parent 90db1c25
......@@ -195,7 +195,7 @@ export class NextScript extends Component {
}
${page === '_error' && `
__NEXT_REGISTER_PAGE('/index', function() {
__NEXT_REGISTER_PAGE('${pathname}', function() {
var error = new Error('Page does not exist: ${htmlescape(pathname)}')
error.statusCode = 404
......
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