1
0
Fork 0
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:
Tim Neutkens 2018-02-09 21:51:57 +01:00
parent b615564c2a
commit ab43e9efc5

View file

@ -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