Docz: hashRouter option isn't work

Created on 5 Jun 2019  路  3Comments  路  Source: doczjs/docz

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

when i click Examples link

But i got this results ...

When i click Getting started link

when i click Examples link

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 |
|------|--------|

Most helpful comment

@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.

All 3 comments

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

Docz has decided to deprecated the hash router support.

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

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ssylvia picture ssylvia  路  3Comments

capaj picture capaj  路  3Comments

mariusespejo picture mariusespejo  路  3Comments

ilyanoskov picture ilyanoskov  路  3Comments

koddr picture koddr  路  3Comments