From 87f0be11e0a469cc1f6491b1fe94e3ab6487cbaf Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sun, 10 Apr 2022 01:19:44 -0700 Subject: [PATCH] Replace url when using legacy artist page (#271) --- src/components/library/ArtistView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/library/ArtistView.tsx b/src/components/library/ArtistView.tsx index 8d7904a..3c62c9c 100644 --- a/src/components/library/ArtistView.tsx +++ b/src/components/library/ArtistView.tsx @@ -126,7 +126,7 @@ const ArtistView = ({ ...rest }: any) => { useEffect(() => { if (settings.getSync('artistPageLegacy') && !rest.isModal) { - history.push(`/library/artist/${artistId}/albums`); + history.replace(`/library/artist/${artistId}/albums`); } }, [artistId, history, rest.isModal]);