Skip to content
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

hashRouter option isn't work #908

Closed
socker210 opened this issue Jun 5, 2019 · 3 comments
Closed

hashRouter option isn't work #908

socker210 opened this issue Jun 5, 2019 · 3 comments

Comments

@socker210
Copy link

Bug report

Hi, first thank you for provide awesome framework.

I tried publish docz build files to github pages and it works well.
But i got some problem which is refresh error on SPA. (Client side routing problem)

So, i added hashRouter option to my doczrc.js configuration file.

And i expected like this ...

When i click Getting started link

  • url is localhost:3003/#/getting-started

when i click Examples link

  • url is localhost:3003/#/examples

But i got this results ...

When i click Getting started link

  • url is localhost:3003/getting-started

when i click Examples link

  • url is localhost:3003/examples

doczrc.js

const pkg = require('./package.json')

module.exports = {
  title: pkg.name,
  description: pkg.description,
  base: `/${pkg.name}/`,
  hashRouter: true,
  dest: 'docs',
  host: '0.0.0.0',
  port: 3003,
  menu: [
    'Getting started',
    'Examples'
  ]
}

Versions

Docz v1.2.0
@ronghang
Copy link

https://www.docz.site/docs/migration-guide#remove-hash-router-support

Docz has decided to deprecated the hash router support.

@socker210
Copy link
Author

@ronghang Oh, i just saw that docs. I will close this issue. Thank you 😊

@kachkaev
Copy link
Contributor

kachkaev commented Jun 26, 2019

@socker210 feel free to follow #763 if you are interested in bringing hash router back. Our team has to stick with 0.13 for now because of that 😞. We several doczs and can't migrate to another hosting.

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