Skip to content

Commit f078da8

Browse files
authored
fix(external-link): replace TMDB ID with IMDB ID for Trakt links (#2934)
1 parent 377bf65 commit f078da8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/ExternalLinkBlock/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ const ExternalLinkBlock = ({
103103
<RTLogo />
104104
</a>
105105
)}
106-
{tmdbId && mediaType !== 'person' && (
106+
{imdbId && mediaType !== 'person' && (
107107
<a
108-
href={`https://trakt.tv/search/tmdb/${tmdbId}?id_type=${
109-
mediaType === 'movie' ? 'movie' : 'show'
110-
}`}
108+
href={`https://trakt.tv/${
109+
mediaType === 'movie' ? 'movies' : 'shows'
110+
}/${imdbId}`}
111111
className="w-8 opacity-50 transition duration-300 hover:opacity-100"
112112
target="_blank"
113113
rel="noreferrer"

0 commit comments

Comments
 (0)