Make the site_map the default view when showing all wiki pages

This commit is contained in:
Patrick Gansterer 2018-06-11 15:34:58 +02:00
parent 91e8eb4950
commit 954795138d

View file

@ -108,7 +108,7 @@ class PagesController < ApplicationController
def all
@pages = Page.non_redirected
@partial = params[:view] || 'title_list'
@partial = params[:view] || 'site_map'
if params[:name]
@pages = @pages.where("title LIKE ?", "%#{params[:name]}%").limit(20)