diff options
Diffstat (limited to 'app/views/refinery/blog/posts/_nav.html.erb')
-rw-r--r-- | app/views/refinery/blog/posts/_nav.html.erb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/views/refinery/blog/posts/_nav.html.erb b/app/views/refinery/blog/posts/_nav.html.erb index df4b435..67aed14 100644 --- a/app/views/refinery/blog/posts/_nav.html.erb +++ b/app/views/refinery/blog/posts/_nav.html.erb @@ -1,11 +1,17 @@ <nav id="next_prev_article"> <% if @blog_post.next.present? -%> - <%= link_to (truncate(@blog_post.next.title) + " »").html_safe, @blog_post.next, :class => 'next' %> + <%= link_to (truncate(@blog_post.next.title) + " »").html_safe, + main_app.url_for(@blog_post.next), + :class => 'next' %> <% end -%> - <%= link_to t('blog_home', :scope => 'blog.posts.show'), blog_root_path, :class => 'home' %> + <%= link_to t('blog_home', :scope => 'refinery.blog.posts.show'), + main_app.blog_root_path, + :class => 'home' %> <% if @blog_post.prev.present? -%> - <%= link_to ("« " + truncate(@blog_post.prev.title)).html_safe, @blog_post.prev, :class => 'prev' %> + <%= link_to ("« " + truncate(@blog_post.prev.title)).html_safe, + main_app.url_for(@blog_post.prev), + :class => 'prev' %> <% end -%> </nav><!-- /next_prev_article --> |