Closed Bug 561537 Opened 14 years ago Closed 14 years ago

[k] Add nicer 404 and 500 handlers

Categories

(support.mozilla.org :: Knowledge Base Software, task, P2)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jsocol, Assigned: jsocol)

Details

Attachments

(2 files)

We should add friendlier-looking 404 and 500 pages in Kitsune.

These pages would only appear when going to a Kitsune URL and getting a 404/500 (for example, going to /forums/non-existent-slug, or adding a trailing /).

We can override the defaults by setting handler404 and handler500, respectively, in the root urls.py. These can be custom views (frex: sumo.views.handle404).

In the 404 handler, it'd be nice to check for a trailing slash, and redirect to remove it. (The destination URL might still be a 404, but it would clean up the /search/ => 500 issue better than the .htaccess fix.)
Assignee: nobody → james
Summary: [k] Add nicer 404 and 500 pages → [k] Add nicer 404 and 500 handlers
WIP: http://github.com/jsocol/kitsune/commit/e339800, includes the 404 handler and moves around the basic search form a bit.
http://github.com/jsocol/kitsune/commit/63b0a159 on forums branch

QA: You won't see this on stage-new until we've merged the forums branch into development, which is hopefully soon.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: