Giter Club home page Giter Club logo

Comments (3)

bethesque avatar bethesque commented on September 26, 2024

Interesting. That link is generated by Docusaurus based on the configuration here: https://github.com/pactflow/docs.pactflow.io/blob/master/website/sidebars.json#L23 I wonder if we've configured it incorrectly, or if there's a bug. I'll have a look into it - thank you for raising it.

from docs.pactflow.io.

bethesque avatar bethesque commented on September 26, 2024

Ok, I've identified the problem. We've got "clean path" turned on, which allows /foo.html to be accessed via /foo by copying /foo.html to /foo/index.html when the site is generated. For some reason, it has an explicit check not to do this if the file is called index.html

https://github.com/facebook/docusaurus/blob/master/packages/docusaurus-1.x/lib/server/generate.js#L50

The "next" link that is generated at the bottom of the page does not know about this rule though, so it's generating the the url /index which doesn't match index.html, so it's considering it a 404, and returning the site index page.

A quick hack would be to copy index.html to index/index.html when we build the site. The more correct fix would be to correct the link, however, they're currently working on docusaurus v2, so they may not be doing bug fixes for v1.

from docs.pactflow.io.

bethesque avatar bethesque commented on September 26, 2024

Got a hack/fix. Interestingly, this problem doesn't appear when running the app in local dev mode, which is why we've never picked it up before.

from docs.pactflow.io.

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.