mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Load pathname correctly
This commit is contained in:
parent
b615564c2a
commit
ab43e9efc5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue