diff --git a/frontend/src/Components/Page/Header/ArtistSearchInput.js b/frontend/src/Components/Page/Header/ArtistSearchInput.js index c0fe5ab20..33d396571 100644 --- a/frontend/src/Components/Page/Header/ArtistSearchInput.js +++ b/frontend/src/Components/Page/Header/ArtistSearchInput.js @@ -78,7 +78,7 @@ class ArtistSearchInput extends Component { goToArtist(artist) { this.setState({ value: '' }); - this.props.onGoToArtist(artist.nameSlug); + this.props.onGoToArtist(artist.foreignArtistId); } reset() { diff --git a/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js b/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js index 3bf1a1678..f1c3cfeeb 100644 --- a/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js +++ b/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js @@ -18,8 +18,8 @@ function createMapStateToProps() { function createMapDispatchToProps(dispatch, props) { return { - onGoToArtist(nameSlug) { - dispatch(push(`${window.Sonarr.urlBase}/artist/${nameSlug}`)); + onGoToArtist(foreignArtistId) { + dispatch(push(`${window.Sonarr.urlBase}/artist/${foreignArtistId}`)); }, onGoToAddNewArtist(query) {