Merge lp:~davidc3/developer-ubuntu-com/redirects-on-404-1 into lp:developer-ubuntu-com
Proposed by
David Callé
on 2016-04-05
| Status: | Merged |
|---|---|
| Approved by: | David Callé on 2016-04-05 |
| 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) | 2016-04-05 | Approve on 2016-04-05 | |
|
Review via email:
|
|||
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.
lp:~davidc3/developer-ubuntu-com/redirects-on-404-1
updated
on 2016-04-05
- 208. By David Callé on 2016-04-05
-
Remove newlines


Had to turn off DEBUG = True, but worked nicely for me.
+1.