We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 377bf65 commit f078da8Copy full SHA for f078da8
1 file changed
src/components/ExternalLinkBlock/index.tsx
@@ -103,11 +103,11 @@ const ExternalLinkBlock = ({
103
<RTLogo />
104
</a>
105
)}
106
- {tmdbId && mediaType !== 'person' && (
+ {imdbId && mediaType !== 'person' && (
107
<a
108
- href={`https://trakt.tv/search/tmdb/${tmdbId}?id_type=${
109
- mediaType === 'movie' ? 'movie' : 'show'
110
- }`}
+ href={`https://trakt.tv/${
+ mediaType === 'movie' ? 'movies' : 'shows'
+ }/${imdbId}`}
111
className="w-8 opacity-50 transition duration-300 hover:opacity-100"
112
target="_blank"
113
rel="noreferrer"
0 commit comments