Skip to content

routerMode should handle non-root starting path #654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bodinsamuel opened this issue Oct 25, 2018 · 2 comments
Closed

routerMode should handle non-root starting path #654

bodinsamuel opened this issue Oct 25, 2018 · 2 comments

Comments

@bodinsamuel
Copy link

Hello,

I load my docs with express serving at localhost/docs/, with this config:

window.$docsify = {
    name: 'Foobar',
    repo: 'foo/bar',
    homepage: 'home.md',
    maxLevel: 3,
    executeScript: true,
    loadSidebar: '_sidebar.md',
    subMaxLevel: 0,
    auto2top: true,
    routerMode: 'history',
    alias: {
      '/docs/.*/_sidebar.md': '/docs/_sidebar.md'
    }
};

When I load the page:

  • it try to load every markdown without /docs at start
  • if I go to localhost/docs (without end slash), docsify try to load localhost/docs.md
  • if I put basePath: '/docs/' docsify try to load http://localhost:8000/docs/docs/README.md even if homepage is set to something different.

Maybe I'm doing something wrong :)

Best regards,

@jthegedus
Copy link
Contributor

jthegedus commented Jan 28, 2019

@bodinsamuel Could you reproduce the error in a https://codesandbox.io/ example so others can help debug?

[Edit] @bodinsamuel see my answer here #720 (comment) . It might help.

@timaschew
Copy link
Member

Closing due to inactivity by the author. Hopefully #720 (comment) is the same issue ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants