add more intelligent js for artist forms
This commit is contained in:
@@ -39,7 +39,7 @@ class WikiPagesController < ApplicationController
|
||||
@wiki_page = WikiPage.find(params[:id])
|
||||
else
|
||||
@wiki_page = WikiPage.find_by_title(params[:id])
|
||||
if @wiki_page.nil?
|
||||
if @wiki_page.nil? && request.format.symbol == :html
|
||||
redirect_to show_or_new_wiki_pages_path(:title => params[:id])
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user