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. Pagination, Javascript & SEO

    Pagination, Javascript & SEO

    Intermediate & Advanced SEO
    5 3 355
    • 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

      I need some help identifying whether we need to rethink the way we paginated product pages,

      On this page

      http://www.key.co.uk/en/key/workbenches when clicking page 1,2, etc - we have javascript to sort the results, the URL displayed and the URL linked to are different. e.g.

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

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

      However - 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& & doesn't take you http://www.key.co.uk/en/key/workbenches?page=3

      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
      • Andy.Drinkwater
        Andy.Drinkwater last edited by

        Hi Becky,

        I think I am with you...

        So is what you are saying, that there are different versions of the same page depending on which option you choose to move forwards with?

        So where is ?page=1, ?page=2, etc linked from?

        There does actually seem to be some problem with the navigation as well. If I go to http://www.key.co.uk/en/key/workbenches?page=3 and the go forwards or back a page, I then am on page 2 or 4, but I see the following URL:

        http://www.key.co.uk/en/key/workbenches?page=3#productBeginIndex:90&orderBy:5&pageView:list&

        So I can be on page 1 or 5 and still see page 3 in the URL.

        That aside, what I see is hashed (fragmented) content and Google doesn't index that. It understands that whatever is after the hash / fragment is used for something specific to a page and therefore for navigation purposes.

        I would look to see what is going on with the navigation because it looks like the pagination is there, just not changing URL's correctly.

        If I start at http://www.key.co.uk/en/key/workbenches and the click next, I get to the '2nd' page, but if I go back, it still shows me as being on the 2nd page in the navigation numbers.

        I would say that there are some issues to iron out here first of all.

        -Andy

        BeckyKey 1 Reply Last reply Reply Quote 0
        • BeckyKey
          BeckyKey @Andy.Drinkwater last edited by

          Hi Andy

          Thank you for your feedback

          To get to the ?page=1, ?page=2, The arrow to the side of the numbers links to these pages, but this URL isn't the one which actually loads. Like you said, you're never on the right URL/page

          I'm just not sure of the best course of action from here & I'm unsure if this will affect SEO?

          I know the webmaster has done this to sort the results by javascript, but I am not sure why they can't link & load the correct page e.g. http://www.key.co.uk/en/key/lighting-electrical?page=2

          With this point you raised:

          There does actually seem to be some problem with the navigation as well. If I go to http://www.key.co.uk/en/key/workbenches?page=3 and the go forwards or back a page, I then am on page 2 or 4, but I see the following URL:

          http://www.key.co.uk/en/key/workbenches?page=3#productBeginIndex:90&orderBy:5&pageView:list&

          Will Google only ever see http://www.key.co.uk/en/key/workbenches?page=3? I am not sure how the crawlers would work in this instance?

          Thank you

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

            If this page:
            /en/key/workbenches#productBeginIndex:30&orderBy:5&pageView:list&
            Had a rel="canonical" tag referencing this page:
            /en/key/workbenches?page=2
            Things would make a little more sense. But instead it references the main category page here:
            en/key/workbenches

            I think you're right to be concerned, and also agree that a View All Canonical page would be ideal for this site if they aren't willing or able to either pre-render the JavaScript so the client loads HTML, or at least land them on the right URL.

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

              Thank you this is helpful 🙂

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • Why is pagination SEO such a mystery in 2021?
                Nobody1616542228134
                Nobody1616542228134
                0
                3
                100

              • Pagination & Canonicals
                BeckyKey
                BeckyKey
                0
                11
                251

              • Related products & SEO
                paints-n-design
                paints-n-design
                0
                2
                370

              • Menu Structure & SEO
                BeckyKey
                BeckyKey
                0
                4
                987

              • Ecommerce, SEO & Pagination
                BeckyKey
                BeckyKey
                0
                6
                208

              • Read More & SEO
                ORob
                ORob
                0
                4
                271

              • Can Javascript be SEO friendly?
                RobertFisher
                RobertFisher
                0
                5
                11.3k

              • Seo for Q&A site
                danbocain
                danbocain
                0
                6
                684

              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