[FIXED JENKINS-49991] Link to home should not full refresh (#1734)

This commit is contained in:
Josh Holmer 2018-05-15 17:39:41 -04:00 committed by Vivek Pandey
parent 8d691215a1
commit cc1d209d08
2 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react';
import { Link } from 'react-router';
const JenkinsLogo = () => (
<svg
@ -76,12 +77,8 @@ const JenkinsLogo = () => (
</svg>
);
export const BlueLogo = props => (
<a href={props.href || '#'} className="BlueOceanLogo">
export const BlueLogo = () => (
<Link to={'/'} className="BlueOceanLogo">
<JenkinsLogo />
</a>
</Link>
);
BlueLogo.propTypes = {
href: PropTypes.string,
};

View File

@ -23,7 +23,7 @@ export const SiteHeader = props => {
<BasicHeader className="ContentPageHeader">
<TopNav>
<Extensions.Renderer extensionPoint="jenkins.header.logo">
<BlueLogo href={`${props.homeURL}/`} />
<BlueLogo />
</Extensions.Renderer>
<div className="u-flex-grow" />
{topNavLinks}