Showing
2 changed files
with
3 additions
and
1 deletions
| ... | ... | @@ -181,6 +181,8 @@ module Kanjai |
| 181 | 181 | self.text_html.to_s |
| 182 | 182 | elsif self.type_content == 'plugin' |
| 183 | 183 | controller = self.controller_name.constantize.new |
| 184 | + | |
| 185 | + controller.instance_variable_set(:@current_url, session[:url]) if session.present? | |
| 184 | 186 | controller.instance_variable_set(:@page_params, session[:page_params]) if session.present? |
| 185 | 187 | controller.instance_variable_set(:@current_page_id, session[:current_page_id]) if session.present? |
| 186 | 188 | controller.instance_variable_set(:@current_locale, session[:current_locale]) if session.present? | ... | ... |