diff --git a/app/models/profile.rb b/app/models/profile.rb index 3479fde..f4862bc 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -359,7 +359,7 @@ class Profile < ActiveRecord::Base end def url_options - options = { :host => default_hostname, :profile => (own_hostname ? nil : self.identifier) } + options = { :protocol => 'http://', :host => default_hostname, :profile => (own_hostname ? nil : self.identifier) } Noosfero.url_options.merge(options) end diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index 59e21f4..fadbc7c 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -39,7 +39,7 @@ # Identify the current controller and action for the CSS: " controller_"+ @controller.controller_name() + " action_"+ @controller.controller_name() +"_"+ @controller.action_name() + - (logged_in? ? ' logged-in' : 'not-logged-in') + ' ' + (logged_in? ? 'logged-in' : 'not-logged-in') %>' onload='noosfero_init();' help=<%= _('Pass the mouse over page elements to get help on them. Click the question mark icon on the top-right corner to deactivate this help window.').inspect %> onresize="registerDocumentSize()">