Merge lp:~davidc3/developer-ubuntu-com/redirects-on-404-1 into lp:developer-ubuntu-com
Proposed by
David Callé
Status: | Merged |
---|---|
Approved by: | David Callé |
Approved revision: | 208 |
Merged at revision: | 207 |
Proposed branch: | lp:~davidc3/developer-ubuntu-com/redirects-on-404-1 |
Merge into: | lp:developer-ubuntu-com |
Diff against target: |
53 lines (+44/-1) 1 file modified
templates/404.html (+44/-1) |
To merge this branch: | bzr merge lp:~davidc3/developer-ubuntu-com/redirects-on-404-1 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Holbach (community) | Approve | ||
Review via email: mp+290963@code.launchpad.net |
Commit message
Hardcoded redirects on 404 page.
Description of the change
Hardcoded redirects on 404 page.
- Checks if beginning of path matches a redirect
- Replaces by new uri
- Checks if page exists
- Redirects
To post a comment you must log in.
Had to turn off DEBUG = True, but worked nicely for me.
+1.