You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
It looks like the title link referring back to the root does not inherit the same base property that the side menu nav items gets. This causes the title link to refer to the wrong page.
For example:
Let's say I'm hosting my documentation on example.com/foo. I set the base property in doczrc.js to /foo/. This causes every item in the side menu to correctly prepend /foo/, including my Getting Started page which has a route: '/' property in its frontmatter.
The Getting Started link simply refers to example.com/foo, but if I hover over the title, it's pointing to example.com instead.
To Reproduce
Using Docz's basic example project:
Set base in doczrc.js to /foo/
Run yarn dev
Hover over menu items and Docz Example Basic title
Expected behavior
The title link should respect the basename property from the Router component, so in the above example it should link to /foo/.
Environment
OS: Ubuntu 18.04
Node/npm version: Node v10.15.3 / npm 6.4.1
The text was updated successfully, but these errors were encountered:
Bug Report
Describe the bug
It looks like the title link referring back to the root does not inherit the same
base
property that the side menu nav items gets. This causes the title link to refer to the wrong page.For example:
Let's say I'm hosting my documentation on example.com/foo. I set the
base
property indoczrc.js
to/foo/
. This causes every item in the side menu to correctly prepend/foo/
, including my Getting Started page which has aroute: '/'
property in its frontmatter.The Getting Started link simply refers to
example.com/foo
, but if I hover over the title, it's pointing toexample.com
instead.To Reproduce
Using Docz's
basic
example project:base
indoczrc.js
to/foo/
yarn dev
Docz Example Basic
titleExpected behavior
The title link should respect the
basename
property from the Router component, so in the above example it should link to/foo/
.Environment
The text was updated successfully, but these errors were encountered: