diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7bb662b..3524b1a 100755 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -40,7 +40,7 @@ def get_theme - if params[:theme]== "default" || params[:theme]=="2003" + if params[:theme]== "default" || params[:theme]=="2003" || params[:theme].nil? params[:theme]="blue1" end if ThemesForRails.available_theme_names.include?(params[:theme]) @@ -51,6 +51,6 @@ else end end def default_url_options - {locale: I18n.locale, theme: (theme_name=="blue1") ? "default" : theme_name , ansicht: nil} + {locale: I18n.locale, theme: (theme_name=="blue1") ? nil : theme_name , ansicht: nil} end end