Skip to content

Commit

Permalink
Load pathname correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Feb 9, 2018
1 parent b615564 commit ab43e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab43e9e

Please sign in to comment.