Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 74
- Log:
Reapplied changes to Typo 4.0.0 from previous version in order to
configure it for use on the RISC OS Open site. Hopefully, the RISC
OS Open theme can be sorted out so that it works with no further
core changes.Note that this configured v4.0.0 installation has not been tested.
- Author:
- adh
- Date:
- Mon Aug 07 22:34:29 +0100 2006
- Size:
- 661 Bytes
1 | class RedirectController < ContentController |
2 | def redirect |
3 | r = Redirect.find_by_from_path(params[:from]) |
4 | |
5 | if(r) |
6 | # From http://pinds.com/articles/2005/11/06/rails-how-to-do-a-301-redirect, thanks |
7 | headers["Status"] = "301 Moved Permanently" |
8 | path = r.to_path |
9 | url_root = request.relative_url_root |
10 | path = url_root + path unless url_root.nil? or path[0,url_root.length] == url_root |
11 | redirect_to path |
12 | else |
13 | render :text => '<html><head><title>Page not found</title></head><body>Internal redirection error - page not found.<br>Please consult the system adminstrator.</body></html>', :status => 404 |
14 | end |
15 | end |
16 | end |