feat: open player title link in new tab when embedded (Fixed mode)
This commit is contained in:
@@ -8,14 +8,26 @@
|
||||
<div class="track-meta-identity">
|
||||
@* Title links to the release's dedicated detail page via the shared resolver (§2): the
|
||||
TrackDto already carries Release { Id, Medium }, so no round-trip is needed. When no
|
||||
release is attached there is no medium to resolve, so the title renders unlinked. *@
|
||||
release is attached there is no medium to resolve, so the title renders unlinked.
|
||||
When Fixed (embedded iframe), the link opens in a new tab so the iframe keeps playing. *@
|
||||
@if (Track.Release is not null)
|
||||
{
|
||||
<a href="@ReleaseRoutes.DetailHref(Track.Release)" style="text-decoration: none;">
|
||||
<MudText Typo="Typo.subtitle2" Class="track-meta-title text-truncate">
|
||||
@Track.TrackName
|
||||
</MudText>
|
||||
</a>
|
||||
@if (Fixed)
|
||||
{
|
||||
<a href="@ReleaseRoutes.DetailHref(Track.Release)" target="_blank" rel="noopener noreferrer" style="text-decoration: none;">
|
||||
<MudText Typo="Typo.subtitle2" Class="track-meta-title text-truncate">
|
||||
@Track.TrackName
|
||||
</MudText>
|
||||
</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a href="@ReleaseRoutes.DetailHref(Track.Release)" style="text-decoration: none;">
|
||||
<MudText Typo="Typo.subtitle2" Class="track-meta-title text-truncate">
|
||||
@Track.TrackName
|
||||
</MudText>
|
||||
</a>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user