Switch SPA navigation to history paths

This commit is contained in:
2026-05-27 21:21:49 +00:00
parent 02a89aee68
commit a0d1433154
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -585,7 +585,7 @@ function getOverview(item: MediaItem): string | null {
}
function getItemHref(item: MediaItem): string {
return `#/${item.type}/${item.id}`
return `/${item.type}/${item.id}`
}
function activateItem(item: MediaItem) {
+1 -1
View File
@@ -118,7 +118,7 @@
class="cast-card media-card"
data-nav-cast-item="true"
v-bind="navAttrs(2 + movieVersions.length, castIndex)"
:href="`#/?q=${encodeURIComponent(castMember.name)}`"
:href="`/search/${encodeURIComponent(castMember.name)}`"
:title="`Search for ${castMember.name}`"
@click.prevent="handleCastSelect(castMember.name)"
>
+2 -2
View File
@@ -33,8 +33,8 @@ defineEmits<{
function getItemHref(item: MediaItem): string | undefined {
if (item.type === "episode") {
const epData = item.data as EpisodeWithSeries
return `#/series/${epData.series.id}`
return `/series/${epData.series.id}`
}
return `#/${item.type}/${item.id}`
return `/${item.type}/${item.id}`
}
</script>