Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Query string in url of paginated pages

  • Hi,
    I am using the query loop block for my blog and archive pages. And am using pagination with it. The SEO consultant we are using says the pagination is generating query strings for each page as such:
    https://beb.fresheggs.biz/knowledge-base/?query-8d7afef8-page=2
    Link found on Next button from KB base page

    https://beb.fresheggs.biz/knowledge-base/?query-8d7afef8-page=1
    Link found on Previous button from page 2

    https://beb.fresheggs.biz/knowledge-base/?cst&query-8d7afef8-page=2
    Link found via Page 2, hitting Page 1, then page 2 link

    https://beb.fresheggs.biz/knowledge-base/?query-8d7afef8-page=2&cst
    Link found via Page 2, hitting Page 1, then Next link

    https://beb.fresheggs.biz/knowledge-base/?query-8d7afef8-page=1&cst
    Link found via Page 2, then Page 1, then Page 2, then Previous button

    https://beb.fresheggs.biz/knowledge-base/?cst&query-8d7afef8-page=1
    Link found via page 2, hitting page 1, then page 2, then Previous button

    https://beb.fresheggs.biz/knowledge-base/?cst
    Link found by selecting page 1 from page 2

    He says:
    all those parameters are unnecessary,
    Need a page 1 and a page 2. Blank out (no link) for current page. Prev gets Page 1 link; Next gets Page 2 link. No redirects. No canonicals.

    How can I correct this? Or can I?

    Thanks for your help.

  • Hi there,

    Unfortunately, there’s no way to alter the links, these are necessary for the query loop pagination to work properly.

    If you want a simpler page links, use block element – content template instead of block element – loop template.

    Make sure you don’t use query loop blocks in the block element – content template.

  • I am not sure if he feels this is bad for SEO, or just prefers it to be simpler. Can you give me an idea of how to defend this. I really do not want to redesign this page. 😉

    Oh – and it’s not an element. It’s just on the blog page as a container with a query loop. What is the best way to structure the blog posts showing without using the queryloop?

  • Can you give me an idea of how to defend this

    I’m not SEO expert, can’t help with this lol..

    You are using a static page, the links are not re-directing to other pages, it’s on the same page.

    If you are only using one query loop block on a static page, you should consider using the WP default archive page with block element – content template.

  • Would be nice if one could customize that get param, even if with some filter.

    so ?query-8d7afef8-page=2 is changed to something like ?events-page=2

    that would be more semantic, and be better for SEO

  • Hello there,

    I see. Currently, the ?query-string is the only method we can reliably allow pagination on query loops in static pages.

    I would recommend raising such a feature here so that our developers can see it and assess if it’s a feature we can include: https://github.com/tomusborne/generateblocks/issues

  • Thanks for all your help. I just reconfigured the page to use WP instead. Would be great if I could have used the query loop as it gave me more control (or maybe just different control) over some other things on the page. But I worked around that.

    I’d love to see the query loop generate a better url for SEO so that I can use it this way though. Will make the suggestion in the link above. Thanks.

  • You’re welcome, Holly!

  • Hi, i ran into the same issue, i can’t release a site into production because the SEO guy doesn’t want that url at all, specially since this is a redesign of an existing website and they already have blog archive pages ranked. So, my question, is there a way to format the url generated by the navigation links? If that’s possible maybe i can use some .htaccess redirections to make it work behind the scenes. But only if i manage to format the navigation links that are located inside a query loop element. The whole blog page is a layout.

    Any advice is well received!

  • So, my question, is there a way to format the url generated by the navigation links?

    No, as we’ve stated in the previous discussion, there’s no way at this moment unfortunately.

  • Thank you for your answer, is that change something that is going to be added in a next version? or any time soon?

  • We currently have no plan to make this change but I will bring it up for internal discussion.

    Thanks!

  • Thank you very much, this feature would be great to have.

  • No problem 🙂

  • Just here do a +1 on getting this sorted out.

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