diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/content_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index 8be4bfbd..debb69b9 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb | |||
| @@ -14,6 +14,11 @@ class ContentController < ApplicationController | |||
| 14 | expires_in 20.minutes, :public => true | 14 | expires_in 20.minutes, :public => true |
| 15 | 15 | ||
| 16 | if @page and @page.public? | 16 | if @page and @page.public? |
| 17 | if (target = @page.redirect_target) | ||
| 18 | return redirect_to(target.internal? ? content_path(target.node.unique_name) : target.url, | ||
| 19 | :status => @page.redirect_status) | ||
| 20 | end | ||
| 21 | |||
| 17 | render( | 22 | render( |
| 18 | :template => @page.valid_template, | 23 | :template => @page.valid_template, |
| 19 | :layout => true | 24 | :layout => true |
