Factor primary nav spaces into its own component, fix non-nip29 default page

This commit is contained in:
Jon Staab
2026-03-12 15:08:31 -07:00
parent 57f2f4a619
commit 77294e7f1c
5 changed files with 53 additions and 44 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ export const makeSpacePath = (url: string, ...extra: (string | undefined)[]) =>
export const goToSpace = async (url: string) => {
const prevPath = lastPageBySpaceUrl.get(encodeRelay(url))
if (prevPath) {
if (prevPath && prevPath !== makeSpacePath(url)) {
goto(prevPath)
} else if (hasNip29(await loadRelay(url))) {
goto(makeSpacePath(url, "recent"))