Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 71
- Log:
Start of upgrade to Typo 4.0.0, the latest stable release since
2.6.0. Note test/mocks/themes/azure changes from a file to a
directory, so the file has been removed in this revision and
the directory will be added in the next revision.
- Author:
- adh
- Date:
- Mon Aug 07 22:18:11 +0100 2006
- Size:
- 520 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 => "Page not found", :status => 404 |
14 | end |
15 | end |
16 | end |