• walterego

    (@walterego)


    Well, that’s only one way to look at it. You could also say that previous posts are located at an incorrect permalink.

    I’m using a static frontpage and my blog is located at domain.com/blog/. The posts_nav_link() creates links link domain.com/blog/page/2/. This is correct I think. However, my previous posts aren’t located there, they’re located at domain.com/page/2/. This is wrong I think. Does anybody know of a way to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter walterego

    (@walterego)

    Anybody?

    I’m having the exact same problem here: http://wordpress.org/support/topic/173415?replies=4#post-755241

    What version are you using? I had this problem in WP 2.5.1

    I’m getting the really bad feeling this is a bug.

    i’ve found a temporary solution

    i was having the very same problem under wordpress 2.5.0.

    Just edit the file /wp-includes/link-template.php
    function get_pagenum_link ….

    (around line number 600)

    After ” $request = remove_query_arg(‘paged’);”
    Add the following lines

    $request=”/”;
    if($pagenum==1)
    $request=”/blog”;

    this will overwrite the /blog of the /blog/page/x of the href of the problematic link to previous and following posts. Although, if the user is returning to the front page of the blog, it restores the “/blog” so the user doesn’t end opening the front page of the whole site (“http://site/”).

    I think this problem is a bug… but i don’t know… with this simple solution we can make a workaround until it is solved.

    hope it helps

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘posts_nav_link points to the wrong location when using static frontpage’ is closed to new replies.