Giter Site home page Giter Site logo

Comments (8)

SMakaiTakori avatar SMakaiTakori commented on May 28, 2024 1

When I click on go to page 2 link and then go to page 3 link, the breadcrumbs just chain on like homepage/page2/page3 instead of homepage/page3 when redirecting.

from gatsby-plugin-breadcrumb.

SMakaiTakori avatar SMakaiTakori commented on May 28, 2024 1

from gatsby-plugin-breadcrumb.

github-actions avatar github-actions commented on May 28, 2024

Thanks for creating an issue! I try to respond as quickly as possible to all issues. If it has been a while feel free to mention me to get my attention.

from gatsby-plugin-breadcrumb.

sbardian avatar sbardian commented on May 28, 2024

Ok maybe I'm confused. Which behavior do you want? Like the demo? This is the default behavior with Click Tracking. It just creates breadcrumbs as you navigate through the site, but if you go to a page that is already part of the breadcrumb, it will just revert back to that state. So in your sandbox, it appears you HAVE to click back to Writtens each time, so you don't ever stack as you navigate. You start at Writtens, then go to post 1, then back to Writtens, then post 2/etc. So when you click back on the Writtens part of the breadcrumb, it updates to just show that, as that is where you navigated in the breadcrumb.

Let me know if I'm misunderstanding.
Thanks!

from gatsby-plugin-breadcrumb.

sbardian avatar sbardian commented on May 28, 2024

@SMakaiTakori let me know thoughts on what I have above? Thanks

from gatsby-plugin-breadcrumb.

sbardian avatar sbardian commented on May 28, 2024

@SMakaiTakori that doesn't sound right. Where on your sandbox can I see this behavior? Also, are you using a pathPrefix? I see some options in your gatsby-config.js for gatsby-plugin-breadcrumb that I don't recognize. Maybe review the docs for Click Tracking?

from gatsby-plugin-breadcrumb.

sbardian avatar sbardian commented on May 28, 2024

@SMakaiTakori in your sandbox I think you have a path prefix of "writtens" see the docs / config example for when you have a path prefix. Maybe that will help, though I don't see this behavior on the sandbox anywhere, so maybe I'm missing it?

from gatsby-plugin-breadcrumb.

sbardian avatar sbardian commented on May 28, 2024

@SMakaiTakori going to close this one. Feel free to reopen if needed.
Thanks

from gatsby-plugin-breadcrumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.