Skip to content

Commit

Permalink
fixing some url links issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau committed Jan 7, 2024
1 parent d402723 commit 639a06d
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/routes/(app)/(library)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@
draggable={false}
use:longPress
on:longPress={() => $selectMode || LongHandler()}
href="manga/{manga.id}"
href="/manga/{manga.id}"
on:click|stopPropagation={(e) => {
if (e.ctrlKey) return;
if ($selectMode) {
e.preventDefault();
lastSelected = HelpDoSelect(manga, e, lastSelected, sortedMangas, selected);
} else {
e.preventDefault();
goto(`manga/${manga.id}`);
goto(`/manga/${manga.id}`);
}
}}
class="hover:opacity-70 cursor-pointer h-full"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/browse/migrate/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
class="h-24"
>
{#if intersecting}
<a href="migrate/source/{source.id}">
<a href="/migrate/source/{source.id}">
<div
class="card m-1 flex h-full items-center variant-glass hover:variant-glass-primary"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<div class="aspect-cover">
{#if intersecting}
<a
href="../manga/{manga.id}"
href="/manga/{manga.id}"
class="hover:opacity-70 cursor-pointer h-full"
tabindex="-1"
>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/browse/sources/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
class="aspect-cover card"
>
{#if intersecting}
<a href="source/{source.id}/popular">
<a href="/browse/source/{source.id}/popular">
<MangaCard
thumbnailUrl={source.iconUrl}
title={source.displayName}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/downloads/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
>
{#if intersecting}
<a
href="manga/{dls.manga.id}"
href="/manga/{dls.manga.id}"
class="hover:variant-glass-surface px-4 h-full flex flex-nowrap items-center"
>
<div class="py-1 h-full aspect-cover mr-2">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/manga/[MangaID]/(manga)/InfoSide.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
</a>
{#if $manga.data.manga.inLibrary}
<a
href="../browse/migrate/manga/{$manga.data.manga.id}"
href="/browse/migrate/manga/{$manga.data.manga.id}"
class="btn variant-soft h-12 flex items-center px-2 sm:px-5"
>
<IconWrapper name="mdi:bird" class="w-auto h-full aspect-square" />
Expand Down
6 changes: 3 additions & 3 deletions src/routes/(app)/manga/[MangaID]/(manga)/chaptersSide.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,15 @@
class="card variant-glass p-2 flex items-center space-x-1 h-full relative"
use:longPress
on:longPress={() => $selectMode || LongHandler()}
href="{manga.data.manga.id}/chapter/{chapter.id}"
href="/manga/{manga.data.manga.id}/chapter/{chapter.id}"
on:click|stopPropagation={(e) => {
if (e.ctrlKey) return;
if ($selectMode) {
e.preventDefault();
lastSelected = HelpDoSelect(chapter, e, lastSelected, sortedChapters, selected);
} else {
e.preventDefault();
goto(`${manga?.data.manga.id}/chapter/${chapter.id}`);
goto(`/manga/${manga?.data.manga.id}/chapter/${chapter.id}`);
}
}}
>
Expand Down Expand Up @@ -506,7 +506,7 @@
</div>
{#if sortedChapters.filter((e) => !e.isRead).length}
<a
href="{manga.data.manga.id}/chapter/{sortedChapters
href="/manga/{manga.data.manga.id}/chapter/{sortedChapters
.filter((e) => !e.isRead)
.toSorted((a, b) => (a.sourceOrder > b.sourceOrder ? 1 : -1))[0].id}"
class="btn variant-filled-primary hover:variant-glass-primary fixed bottom-2 right-16"
Expand Down
4 changes: 2 additions & 2 deletions src/routes/(app)/settings/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</script>

<a
href="settings/categories"
href="/settings/categories"
class=" text-left flex items-center w-full h-16 hover:variant-glass-surface cursor-pointer"
>
<IconWrapper class="h-full w-auto p-2" name="mdi:shape" />
Expand Down Expand Up @@ -126,7 +126,7 @@
</button>
{/if}
<a
href="settings/about"
href="/settings/about"
class=" text-left flex items-center w-full h-16 hover:variant-glass-surface cursor-pointer"
>
<IconWrapper class="h-full w-auto p-2" name="mdi:information" />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/updates/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<a
use:longPress
on:longPress={() => $selectMode || LongHandler()}
href="manga/{updat.manga.id}"
href="/manga/{updat.manga.id}"
on:click|stopPropagation={(e) => {
if (e.ctrlKey) return;
if ($selectMode) {
Expand Down

0 comments on commit 639a06d

Please sign in to comment.