fix(share): correct share URLs for session/mix detail pages — release mode + /tracks/ plural
This commit is contained in:
@@ -54,7 +54,7 @@ public partial class SharePopover : ComponentBase, IDisposable
|
|||||||
? $"{Navigation.BaseUri.TrimEnd('/')}{ReleaseRoutes.DetailHref(ReleaseEntryKey!, ReleaseMedium)}"
|
? $"{Navigation.BaseUri.TrimEnd('/')}{ReleaseRoutes.DetailHref(ReleaseEntryKey!, ReleaseMedium)}"
|
||||||
: TrackUrl;
|
: TrackUrl;
|
||||||
|
|
||||||
private string TrackUrl => $"{Navigation.BaseUri}track/{EntryKey}";
|
private string TrackUrl => $"{Navigation.BaseUri}tracks/{EntryKey}";
|
||||||
|
|
||||||
private string EmbedSnippet =>
|
private string EmbedSnippet =>
|
||||||
$"""<iframe src="{Navigation.BaseUri}FramePlayer?TrackEntryKey={EntryKey}" width="656" height="196" frameborder="0" style="border-radius:8px;" allow="autoplay"></iframe>""";
|
$"""<iframe src="{Navigation.BaseUri}FramePlayer?TrackEntryKey={EntryKey}" width="656" height="196" frameborder="0" style="border-radius:8px;" allow="autoplay"></iframe>""";
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ else
|
|||||||
Track="@ViewModel.Track"
|
Track="@ViewModel.Track"
|
||||||
BackHref="/mixes"
|
BackHref="/mixes"
|
||||||
BackLabel="All mixes"
|
BackLabel="All mixes"
|
||||||
ShowMeta="@(hasGenre || hasDate)">
|
ShowMeta="@(hasGenre || hasDate)"
|
||||||
|
ShowShareRow="false">
|
||||||
<TopRightAction>
|
<TopRightAction>
|
||||||
@* Lava-lamp button top-right, across from the back link. Toggles the INLINE seven-knob
|
@* Lava-lamp button top-right, across from the back link. Toggles the INLINE seven-knob
|
||||||
control bar that animates open/closed in place below it (lava reframe §7b) — not a
|
control bar that animates open/closed in place below it (lava reframe §7b) — not a
|
||||||
@@ -100,6 +101,12 @@ else
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</MetaContent>
|
</MetaContent>
|
||||||
|
<BodyContent>
|
||||||
|
@* Release-mode share: copies the canonical /mixes/{entryKey} URL, not a single track (§3b). *@
|
||||||
|
<div class="deepdrft-share-row">
|
||||||
|
<SharePopover ReleaseEntryKey="@release.EntryKey" ReleaseMedium="@release.Medium" />
|
||||||
|
</div>
|
||||||
|
</BodyContent>
|
||||||
</ReleaseDetailScaffold>
|
</ReleaseDetailScaffold>
|
||||||
</MudContainer>
|
</MudContainer>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -87,12 +87,10 @@ else
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</MudStack>
|
</MudStack>
|
||||||
@if (ViewModel.Track is not null)
|
@* Release-mode share: copies the canonical /sessions/{entryKey} URL, not a single track (§3b). *@
|
||||||
{
|
<div class="session-hero-share">
|
||||||
<div class="session-hero-share">
|
<SharePopover ReleaseEntryKey="@release.EntryKey" ReleaseMedium="@release.Medium" />
|
||||||
<SharePopover EntryKey="@ViewModel.Track.EntryKey" />
|
</div>
|
||||||
</div>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@* Bottom overlay: cover thumbnail, title/artist, and the play affordance in one row. *@
|
@* Bottom overlay: cover thumbnail, title/artist, and the play affordance in one row. *@
|
||||||
|
|||||||
Reference in New Issue
Block a user