Clicking on nav logo takes to default page instead of home
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
darkModeStore,
|
||||
instanceStore,
|
||||
interfaceAmoledTheme,
|
||||
interfaceDefaultPage,
|
||||
showWarningStore,
|
||||
syncPartyPeerStore,
|
||||
themeColorStore
|
||||
@@ -235,7 +236,7 @@
|
||||
</nav>
|
||||
{/if}
|
||||
|
||||
<nav onclick={() => goto('/')} style="cursor: pointer;" class="m l">
|
||||
<nav onclick={() => goto($interfaceDefaultPage)} style="cursor: pointer;" class="m l">
|
||||
<Logo />
|
||||
<h6 class="l">Materialious</h6>
|
||||
</nav>
|
||||
|
||||
@@ -7,7 +7,7 @@ import { authStore, interfaceDefaultPage } from '$lib/store.js';
|
||||
import { locale, waitLocale } from 'svelte-i18n';
|
||||
import { get } from 'svelte/store';
|
||||
|
||||
export let ssr = false;
|
||||
export const ssr = false;
|
||||
|
||||
export async function load({ url }) {
|
||||
if (url.pathname.startsWith('/@')) {
|
||||
@@ -18,7 +18,7 @@ export async function load({ url }) {
|
||||
if (resolvedUrl.pageType === 'WEB_PAGE_TYPE_CHANNEL') {
|
||||
goto(`/channel/${resolvedUrl.ucid}`);
|
||||
}
|
||||
} catch { }
|
||||
} catch {}
|
||||
}
|
||||
|
||||
if (browser) {
|
||||
|
||||
Reference in New Issue
Block a user