Skip to content

Commit

Permalink
Traffic: add missing siteRawUrl to props (#8661)
Browse files Browse the repository at this point in the history
`commonProps` is passed on to `GoogleAnalytics` component which expects `siteRawUrl` url to be present:

https://github.com/Automattic/jetpack/blob/537309fd4a530257e4aa6ab5fa104e6496cda995/_inc/client/traffic/google-analytics.jsx#L38

Without this a link in the component will render like show:

`https://wordpress.com/stats/day/undefined`
  • Loading branch information
simison authored and dereksmart committed Jan 30, 2018
1 parent f7fb20f commit bab4c3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _inc/client/traffic/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const Traffic = React.createClass( {
render() {
const commonProps = {
settings: this.props.settings,
siteRawUrl: this.props.siteRawUrl,
getModule: this.props.module,
isDevMode: this.props.isDevMode,
isUnavailableInDevMode: this.props.isUnavailableInDevMode
Expand Down

0 comments on commit bab4c3e

Please sign in to comment.