app/controllers/pages_controller.rb in activeadmin-selleo-cms-0.0.26 vs app/controllers/pages_controller.rb in activeadmin-selleo-cms-0.0.27

- old
+ new

@@ -33,9 +33,9 @@ end def index respond_to do |format| format.html { redirect_to page_path(I18n.locale, ActiveadminSelleoCms::Page.root) } - format.json { render text: ActiveadminSelleoCms::Page.published.reorder("lft ASC").map{|p| [p.to_label, p.url(locale: false)]}.to_json } + format.json { render text: ActiveadminSelleoCms::Page.published.reorder("lft ASC").map{|p| [p.to_label, with_host(p.url(locale: false))]}.to_json } end end end