Title: Comment pages &#8211; wrong redirect
Last modified: December 13, 2016

---

# Comment pages – wrong redirect

 *  [WetCatBooks](https://wordpress.org/support/users/wetcatbooks/)
 * (@wetcatbooks)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/)
 * Since the last WP update, when a person commented on a post with more than one
   page of comments, they would be redirected to the oldest page of comments, back
   in 2012. The new comment would end up on the latest page, but the person submitting
   the comment would end up on the old page.
 * A re-install of the latest WP did not help, and disabling all the plugins did
   not help. Temporarily switching to the latest version of Twenty Sixteen did not
   help. We restored the site to a backup from just before the latest WP update,
   and the comments worked. Then WP was updated again, and it went back to not working.
 * My hosting service said it wasn’t caused by anything they did, so I hired a developer
   to fix it. Now the reader stays on the right page, which is nice, but in the 
   dashboard, on the comment page, the link to every comment takes me to 2012. This
   is a link to one of the newer comments. The link takes you to the oldest comment
   page for that post:
 * [http://www.ultimatepapermache.com/daily-sculptors-group-page/comment-page-1#comment-139978](http://www.ultimatepapermache.com/daily-sculptors-group-page/comment-page-1#comment-139978)
 * Also, my Subscribe to Comments Reloaded plugin sends the 2012 link to people 
   after someone replies to their comment, but I don’t think it’s a plugin issue.
   The SCR plugin is just reading what the system is telling it, and the system 
   is wrong.
 * When the expert fixed the redirect problem, this is what they added to my theme’s
   functions.php file (The theme developer didn’t think it was a theme issue):
 *     ```
       add_filter('comment_post_redirect', 'redirect_after_comment');
       function redirect_after_comment($location) {
          return $_SERVER["HTTP_REFERER"];
       }
       ```
   
 * I really want the system to know where the comments are, and I do want readers
   to be able to follow a link to their replies. The expert I hired said this is
   a completely separate issue from the first one, so I’ll have to hire them again
   for the ‘new’ problem. I’m starting to think they may just make things worse.
   Does anyone have any suggestions for fixing this?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8545565)
 * Hey there,
 * Navigate to Settings > Reading settings, in your WordPress. There you will find:
 * `Break comments into pages with [number] top level comments per page and the [
   first/last] page displayed by default`
 * Change the ‘Last’ to ‘First’ and then see the next line which has:
 * `Comments should be displayed with the [newer/older] comments at the top of each
   page`
 * Change it to newer, and see if it works after that. 🙂
 *  [sandradepalma](https://wordpress.org/support/users/sandradepalma/)
 * (@sandradepalma)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8547111)
 * I have exactly the same problem since the upgrade to WordPress version 4.7. It
   takes you to the page with the oldest comments after posting. Also the links 
   in the “Latest Comments” Widget are now wrong, they point to the page with the
   oldest comments.
 * [@hardeepasrani](https://wordpress.org/support/users/hardeepasrani/) Changing
   those settings did not help.
 * There must have been a code change with version 4.7 that messes up the comments.
   Rolling back to 4.6 cures the problem.
 *  Thread Starter [WetCatBooks](https://wordpress.org/support/users/wetcatbooks/)
 * (@wetcatbooks)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8547170)
 * Thank you – I thought it was just me. I went back to 4.6 and the problem went
   away, but SiteGround automatically updates to the latest WP version, so the fix
   didn’t last long. And one of my pages has 76 pages of comments – if I set the
   system to display the first page, they’ll be back in 2012 from the start. I had
   to disable my Subscribe to Comments Reloaded plugin, due to the glitch.
 * Since I can’t find anyone else discussing this online, I assume it’s not happening
   to everyone. Could it really just be the two of us? But that would mean that 
   the next WP version will have the same code that is causing the problem. I’m 
   getting really frazzled, since the comments are such an important part of my 
   site.
 *  Thread Starter [WetCatBooks](https://wordpress.org/support/users/wetcatbooks/)
 * (@wetcatbooks)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8547340)
 * Although – you don’t happen to host your site on SiteGround, do you? I know it’s
   a long shot, but I thought I’d ask, just in case something in WP 4.7 is disagreeing
   with their code.
 *  [sandradepalma](https://wordpress.org/support/users/sandradepalma/)
 * (@sandradepalma)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8547749)
 * No, I am self-hosted on an IIS server. Let’s check if it is in cunjunction with
   any plugins, I have installed:
 * Akismet
    Cloudflare Disable Emojis Disable Google Fonts Disable Smart Quote Link
   Manager Official Statcounter Plugin Subscribe to comments reloaded
 * Do you have any of those?
 * BTW, I have now done a workaround which works for me. Go to
 * Settings > Discussion
 * Break comments into pages with 1 top level comments and the LAST page displayed
   by default
 * Comments should be displayd with the OLDER comments at the top of each page
 * This solution is ok for me as I have normally many answers to a comment, so I
   have all the answers and the original comment on one page.
 * Still, WordPress should fix the issue.
    -  This reply was modified 9 years, 5 months ago by [sandradepalma](https://wordpress.org/support/users/sandradepalma/).
 *  Thread Starter [WetCatBooks](https://wordpress.org/support/users/wetcatbooks/)
 * (@wetcatbooks)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8548566)
 * Great idea about the plugins. The only plugins we have in common are Akismet 
   and Subscribe to Comments Reloaded. I disabled the Subscribe to Comments plugin
   and it didn’t fix anything so that can’t be causing the problem. And I can’t 
   disable Akismet, for the obvious reasons.
 * I’m glad you found a solution that works for you. I don’t think I can do that,
   though. The discussions between readers is really important, and they only know
   about the comments they can see. It isn’t a tech-savy crowd. I’ll ask SiteGround
   if they’ll let me use the older version of WP.
 * Surely we aren’t the only two people on the planet with this problem? Of course,
   most blogs don’t get enough comments for the pagination to ever be turned on.
   Maybe that’s why more people aren’t upset about it.
 *  [sandradepalma](https://wordpress.org/support/users/sandradepalma/)
 * (@sandradepalma)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8548662)
 * Some people complained about the “1 page per comment” solution, so I downgraded
   to 4.6.1.
 * It now works again.
 * I don’t think it is Akismet as hundreds of thousands of WordPress pages use it,
   so we would see more reactions.
 * I have now also upgraded another blog without the Subscribe to Comments Reloaded
   plugin. It has the same problem. So I don’t think it is Plugin related.
 * It must be an oversight in core WordPress 4.7.
 * I have to check if I can file somewhere a bug report because this is really annoying.
 *  Moderator [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8555751)
 * Just as an FYI, there is a known issue in 4.7 with comment permalinks which sounds
   like it might be related. That is being looked at and will likely be patched 
   with 4.7.1. You can follow along at [https://core.trac.wordpress.org/ticket/39280](https://core.trac.wordpress.org/ticket/39280)
   if you want to watch the progress, or have additional details to provide on this.
    -  This reply was modified 9 years, 5 months ago by [Marius L. J.](https://wordpress.org/support/users/clorith/).
 *  [sandradepalma](https://wordpress.org/support/users/sandradepalma/)
 * (@sandradepalma)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8556241)
 * Thank you very much, that is exactly the problem I am having. I will comment 
   in the bug as well.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Comment pages – wrong redirect’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/comment-pages-wrong-redirect/#post-8555751)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
