Support » Fixing WordPress » Trailing slash on first pagination

  • Hello,

    I setted a custom permalink, who remove the trailing slash a the end of the URL : /%postname%

    On the archives pages with pagination, the link of the first page, add a trailing slash. For exemple : /category/uncategorized/

    Or the initial generated url on other link is : /category/uncategorized

    As a result, when i click on link “1” on archive page, a 301 redirection forward to the page without slash. And it seem it’s bad for SEO (i receive warning from audit software). Same on author page.

    I tried on fresh wordpress installation, without plugins , default theme and it’s the same problem. I think it’s a bug, do you now know can i fix it ? Thank you.

    • This topic was modified 4 days, 4 hours ago by djovanov.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Technically, a URL with / and without it are considered two different URLs, which is why should stick with one version of URL to avoid duplicate content issues.

    WordPress likes to have the trailing slash and there is no harm in it. Its not productive to change links everywhere in code just to not have the trailing slash since it has no impact on SEO.

    Thread Starter djovanov


    It’s not related to productivity. In some case, we have to change the permalink structure (migration from Drupal in the example) to keep initial URL structure. WordPress allow that possibility, with the custom permalink option. But the parameter it not’s respected on the archive.

    Thank you

    WordPress automatically redirects urls without trailing slash to trailing slash ones, so you would be fine without doing anything, if you are ok with accepting final URLs with trailing slash included.

    If not, then you would have to change it in every place where it still includes the trailing slash. I think in this instance, the pagination plugin you are using doesn’t account for your configured permalink to not include the trailing slash. It should have a filter with which you can change the URL for pages. Else you can file an issue with the plugin author.

    Are there other instances which still includes the trailing slash?

    Thread Starter djovanov


    This is a staging instance created only to reproduce the issue. As i mentioned above, they are no plugins installed, only a fresh install of wordpress, with a default theme, Twenty Twenty Two. The problem is the same with others theme i tested ( around 10 themes). In fact, the pagination URL are managed by wordpress. And i have the same problem on my production website.

    The URL structure are generated automatically, with the option i mentioned below, the permalink structure :

    On other content, like post, i haven’t any problems, only on the archive pagination number “1”

    I have reproduced this on my install as well. This is definitely a bug with pagination block.

    I found two such issues reported: and

    Thread Starter djovanov


    OK thank you ! hope it’s resolved soon… the bug opened 2 years ago !

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.