提交 ab43e9ef 编写于 作者: T Tim Neutkens

Load pathname correctly

上级 b615564c
......@@ -195,7 +195,7 @@ export class NextScript extends Component {
}
${page === '_error' && `
__NEXT_REGISTER_PAGE('${pathname}', function() {
__NEXT_REGISTER_PAGE('${htmlescape(pathname)}', function() {
var error = new Error('Page does not exist: ${htmlescape(pathname)}')
error.statusCode = 404
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册