Commit f003a7d9340f0878e62bd546752c5515d7ce5c3a
Committed by
Victor Costa
1 parent
53166630
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix error in return values from redirect_to_translation
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
... | ... | @@ -107,10 +107,12 @@ class ContentViewerController < ApplicationController |
107 | 107 | if translation.language == locale |
108 | 108 | @page = translation |
109 | 109 | redirect_to :profile => @page.profile.identifier, :page => @page.explode_path |
110 | + return true | |
110 | 111 | end |
111 | 112 | end |
112 | 113 | end |
113 | 114 | end |
115 | + false | |
114 | 116 | end |
115 | 117 | |
116 | 118 | def pass_without_comment_captcha? | ... | ... |