A decentralized music tracking and discovery platform built on AT Protocol 🎵

[web] fix external link not displayed

+4 -5
+1 -2
apps/web/src/layouts/ExternalLinks/ExternalLinks.tsx
··· 21 21 }, 22 22 } = useRouter(); 23 23 const display = 24 - pathname.includes("app.rocksky.scrobble") || 25 - pathname.includes("app.rocksky.song"); 24 + pathname.includes("/scrobble/") || pathname.includes("/song/"); 26 25 return ( 27 26 <> 28 27 {display && song?.spotifyLink && (
+3 -3
apps/web/src/pages/home/nowplayings/NowPlayings.tsx
··· 227 227 <div className="flex flex-col items-center flex-1"> 228 228 {currentlyPlaying?.trackUri && ( 229 229 <Link 230 - to={`/${currentlyPlaying?.trackUri.split("at://")[1].replace("app.rocksky", "")}`} 230 + to={`/${currentlyPlaying?.trackUri.split("at://")[1].replace("app.rocksky.", "")}`} 231 231 > 232 232 <Cover 233 233 src={currentlyPlaying?.albumArt} ··· 237 237 )} 238 238 {currentlyPlaying?.trackUri && ( 239 239 <Link 240 - to={`/${currentlyPlaying?.trackUri.split("at://")[1].replace("app.rocksky", "")}`} 240 + to={`/${currentlyPlaying?.trackUri.split("at://")[1].replace("app.rocksky.", "")}`} 241 241 > 242 242 <TrackTitle>{currentlyPlaying?.title}</TrackTitle> 243 243 </Link> ··· 265 265 <TrackTitle>{currentlyPlaying?.title}</TrackTitle> 266 266 )} 267 267 <Link 268 - to={`/${currentlyPlaying?.artistUri?.split("at://")[1].replace("app.rocksky", "")}`} 268 + to={`/${currentlyPlaying?.artistUri?.split("at://")[1].replace("app.rocksky.", "")}`} 269 269 > 270 270 <TrackArtist>{currentlyPlaying?.artist}</TrackArtist> 271 271 </Link>