React UI: Make link to classic UI work (#6320)

It being a Reach Router <Link> caused the Reach router to not actually
leave the React app, even though the destination path was not a path
handled by the Reach Router.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2019-11-14 18:46:39 +01:00 committed by GitHub
parent 8ee3b8c848
commit 2a6df53416
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,9 +67,7 @@ const Navigation: FC<PathPrefixProps> = ({ pathPrefix }) => {
<NavLink href="https://prometheus.io/docs/prometheus/latest/getting_started/">Help</NavLink>
</NavItem>
<NavItem>
<NavLink tag={Link} to={pathPrefix}>
Classic UI
</NavLink>
<NavLink href={`${pathPrefix}/`}>Classic UI</NavLink>
</NavItem>
</Nav>
</Collapse>