Commit e1d2bf9c4e64934ad691c86b9f373ea2692367c0

Authored by Leandro Santos
1 parent ef70a151

fix new content url in not found content

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/shared/not_found.html.erb
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 <%= button :home, _('Go to the home page'), '/' %> 11 <%= button :home, _('Go to the home page'), '/' %>
12 <% if logged_in? %> 12 <% if logged_in? %>
13 <% parent_id = ((@article && @article.allow_children?) ? @article : nil) %> 13 <% parent_id = ((@article && @article.allow_children?) ? @article : nil) %>
14 - <%= modal_button('new', _('New content'), :controller => 'cms', :action => 'new', :parent_id => parent_id, :cms => true) %> 14 + <%= modal_button('new', _('New content'), myprofile_path(:profile => current_person.identifier, :controller => 'cms', :action => 'new', :parent_id => parent_id)) %>
15 <% end %> 15 <% end %>
16 <% end %> 16 <% end %>
17 <form action="/search"> 17 <form action="/search">