-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Navigation via url/refresh/link other than sidenav does not work in production mode. #148
Comments
Not to piggy-back on all your issues, but in development mode, it does a full page refresh, whereas the sidebar triggers a rerender. Could be related. |
I think that it's a problem related to this issue: #25 To link documents on your markdown, you need to use the docz import { Link } from 'docz'
<Link to="/some/path">my link</Link> I'm really like this post that explains very well about this |
It might be nice to enable internal linking with standard Markdown. I noticed the docz site itself does full page reloads when linking in the content. |
Yes, docz site has full page reload because we are doing an |
Switching from using Markdown links to |
@pedronauck hosting the dist using im using v1 rc7 |
Bug Report
When the project has been built for production using
yarn docz build
navigation only works through the side bar. When trying to link between pages using markdown links, or refreshing the page, the site 404's.To Reproduce
Here is what I used to test -
First I load the
typography
page successfully by using the sidebar nav, it loads successfully.Next I try to refresh the page and it 404's.
Then I navigate to the
colors
page and it loads successfully.Next I try to refresh the page and it 404`s.
Expected behavior
That the routes are served so they can be accessed from anywhere, not just from the sidebar navigation.
Enviroment
The text was updated successfully, but these errors were encountered: