Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

404 page#506

Merged
dannycoates merged 3 commits intomozilla:masterfrom
varghesethomase:404-page
Aug 11, 2017
Merged

404 page#506
dannycoates merged 3 commits intomozilla:masterfrom
varghesethomase:404-page

Conversation

@varghesethomase
Copy link
Copy Markdown
Contributor

Fixing #446 by replacing all res.sendStatus(404); with res.status(404).render('notfound');

@abhinadduri
Copy link
Copy Markdown
Collaborator

@varghesethomase We should only render the notfound page for HTML endpoints; some of the 404s are API endpoints and will not be expecting a notfound HTML page.

@varghesethomase
Copy link
Copy Markdown
Contributor Author

@abhinadduri Could you help me with identifying the APIs so that i can revert the necessary code?

@varghesethomase
Copy link
Copy Markdown
Contributor Author

I guess the only non XHR request out there is for the /download url. I am reverting all the other code. And have updated the PR.

@dannycoates
Copy link
Copy Markdown
Contributor

Thank you @varghesethomase 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants