diff --git a/src/components/header/SubHeader.js b/src/components/header/SubHeader.js index b6034aa6f..839a1ff57 100644 --- a/src/components/header/SubHeader.js +++ b/src/components/header/SubHeader.js @@ -17,12 +17,19 @@ class Subheader extends Component { super(props); this.state = { - pdfSrc: null + pdfSrc: null, + elementPath: '' } } componentDidMount() { document.getElementsByClassName('js-subheader-column')[0].focus(); + + elementPathRequest('window', this.props.windowType).then(response => { + this.setState({ + elementPath: response.data + }); + }); } handleKeyDown = (e) => { @@ -121,6 +128,10 @@ class Subheader extends Component { handleEditModeToggle, handleEmail } = this.props; + const { + elementPath + } = this.state; + const docLinks = dataId && [