The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Javascript search results & Pagination for SEO

    Javascript search results & Pagination for SEO

    Intermediate & Advanced SEO
    5 2 542
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BeckyKey
      BeckyKey last edited by

      Hi

      On this page http://www.key.co.uk/en/key/workbenches we have javascript on the paginated pages to sort the results, the URL displayed and the URL linked to are different. e.g.

      The paginated pages link to for example: page2 http://www.key.co.uk/en/key/workbenches#productBeginIndex:30&orderBy:5&pageView:list&

      The list is then sorted by javascript.

      Then the arrows either side of pagination link to e.g. http://www.key.co.uk/en/key/workbenches?page=3 - this is where the rel/prev details are - done for SEO

      But when clicking on this arrow, the URL loaded is different again - http://www.key.co.uk/en/key/workbenches#productBeginIndex:60&orderBy:5&pageView:list&

      I did not set this up, but I am concerned that the URL http://www.key.co.uk/en/key/workbenches?page=3 never actually loads, but it's linked to Google can crawl it.

      Is this a problem?

      I am looking to implement a view all option.

      Thank you

      1 Reply Last reply Reply Quote 0
      • HiveDigitalInc
        HiveDigitalInc last edited by

        Hi Becky,

        Great question!

        For the page - http://www.key.co.uk/en/key/workbenches - Google's cache is showing they are only able to load/see a single product on the page.

        The same is happening on the cached versions of your paginated pages like http://www.key.co.uk/en/key/workbenches?page=3  ...

        Google is able to find these paginated versions because you are properly implementing the rel=next and rel=prev in the source of the pages.  I wouldn't worry too much at this point about the jscript loading creating the "anchor" urls with sorting, etc.. though you could consider using pushstate to force the correct canonical URL in the browser.

        I would focus on making sure the content is indexable by Google so they can find the links to all of your product pages, etc. You might want to consider a pre-render service for those pages, or as you mentioned, having a page listing all products so they can easily be crawled.  You should double check this by fetching the pages in GSC and seeing how they render.

        On a side note, you might want to look into some product schema options for your content 🙂

        Cheers,

        Jake Bohall

        BeckyKey 1 Reply Last reply Reply Quote 1
        • BeckyKey
          BeckyKey @HiveDigitalInc last edited by

          Hi Jake

          Thanks so much for your reply, I had something in the Robots.txt file blocking css so this has been removed.

          I've just checked and all products now seem to be showing.

          I'll look into product schema, I had looked before but couldn't see any schema for product listing pages?

          So you don't think anything is wrong with the pagination?

          Thank you

          HiveDigitalInc 1 Reply Last reply Reply Quote 0
          • HiveDigitalInc
            HiveDigitalInc @BeckyKey last edited by

            Hi Becky,

            You don't need "product listing" schema.. you just simply markup each product on the page using the product schema - https://schema.org/Product...

            I don't see any glaring issues with your pagination.

            I do however, see the issue with displaying the products on the page continues..  Google most recently cached this page on 9/30 - http://www.key.co.uk/en/key/workbenches - and it still is only displaying a single product in the cache.   You might be able to get some insight into any JS that is being blocked by looking in GSC...   Using Google's mobile testing tool, it indicates there is some en-gb.js file that is being blocked, but I couldn't find it in the source.. so it must be referenced elsewhere.  I'm not sure if this is the issue, but It's a decent starting point.

            Best,

            Jake Bohall

            BeckyKey 1 Reply Last reply Reply Quote 1
            • BeckyKey
              BeckyKey @HiveDigitalInc last edited by

              Hi Jake

              Thank you for your input.

              I've looked in what might be blocked & I still have a couple of .js files blocked, they're AJAX e.g.

              http://www.key.co.uk/wcsstore/dojo18/dijit/nls/loading.js

              http://www.key.co.uk/wcsstore/dojo18/dojo/fx/easing.js

              These aren't in the robots.txt files - do you think it's worth finding & unblocking them?

              Thank you

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • How to solve JavaScript paginated content for SEO
                MJTrevens
                MJTrevens
                1
                3
                53

              • An improved search box within the search results - Results?
                DennisSeymour
                DennisSeymour
                0
                2
                91

              • Search box within search results question
                Lumina
                Lumina
                0
                2
                57

              • How Google organic search results differ in Local Searches?
                MiriamEllis
                MiriamEllis
                0
                9
                984

              • To index search results or to not index search results?
                IOSC
                IOSC
                0
                2
                53

              • Do search results differ greatly when you search on mobile?
                intSchools
                intSchools
                0
                4
                92

              • Duplicate title tags in a pagination case (not search results)
                MHD
                MHD
                0
                3
                656

              • Pagination Question: Google's 'rel=prev & rel=next' vs Javascript Re-fresh
                nicole.healthline
                nicole.healthline
                0
                3
                793

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              • Digital Marketers
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy