Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not receiving 404/Error page #39

Closed
cn-d opened this issue Mar 24, 2018 · 4 comments
Closed

Not receiving 404/Error page #39

cn-d opened this issue Mar 24, 2018 · 4 comments

Comments

@cn-d
Copy link

cn-d commented Mar 24, 2018

When I navigate to a route or page that doesn't exist I get a 200 response - successfully receiving a blank page when I should be receiving a 404.

@EdwardLecock
Copy link

I don't think this related to kirby-webpack. Anyway you can add a 404 status header yourself.

c::set('headers', array(
	'error' => 404,
));

@cn-d
Copy link
Author

cn-d commented Mar 24, 2018

Hi Edward,

Thanks for taking the time to reply. I thought so too but I tried it on a fresh clone and I have the same problem. Also, I have a website using an older version of kirby-webpack and the site works as expected. So I'm not sure how to diagnose the problem. Setting a 404 header and template didn't help. Do you have any other suggestions?

c::set('headers', array(
	'error' => 404,
));

@arnaudjuracek
Copy link
Member

Did you try with a content/error/error.txt page ?

@cn-d
Copy link
Author

cn-d commented Mar 25, 2018

I feel rather silly, that was indeed the problem. I forgot the whole premise of kirby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants