diff --git a/src/lib/components/lemmy/community/CommunityItem.svelte b/src/lib/components/lemmy/community/CommunityItem.svelte
index f676ae73..8c360ce2 100644
--- a/src/lib/components/lemmy/community/CommunityItem.svelte
+++ b/src/lib/components/lemmy/community/CommunityItem.svelte
@@ -22,7 +22,11 @@
-
+
diff --git a/src/routes/search/+page.svelte b/src/routes/search/+page.svelte
index 3740d8a3..299d16fd 100644
--- a/src/routes/search/+page.svelte
+++ b/src/routes/search/+page.svelte
@@ -12,6 +12,7 @@
import Pageination from '$lib/components/ui/Pageination.svelte'
import Spinner from '$lib/components/ui/loader/Spinner.svelte'
import { isComment, isCommunity, isPost, isUser } from '$lib/lemmy/item.js'
+ import { searchParam } from '$lib/util.js'
import type {
CommentView,
CommunityView,
@@ -84,7 +85,7 @@
{:else}
{#await data.streamed.object}
@@ -125,12 +126,7 @@
{#if data.results.length > 0}
{
- $page.url.searchParams.set('page', p.detail.toString())
- goto($page.url, {
- invalidateAll: true,
- })
- }}
+ on:change={(p) => searchParam($page.url, 'page', p.detail.toString())}
/>
{/if}
{/if}