atproto explorer pdsls.dev
atproto tool

fix search redirect history

juli.ee 63ff15fb 47bfa837

verified
Changed files
+4 -4
src
+1 -1
src/layout.tsx
···
createEffect(async () => {
if (props.params.repo && !props.params.repo.startsWith("did:")) {
const did = await resolveHandle(props.params.repo as Handle);
-
navigate(location.pathname.replace(props.params.repo, did));
+
navigate(location.pathname.replace(props.params.repo, did), { replace: true });
}
});
+3 -3
src/views/repo.tsx
···
if (!did.startsWith("did:")) {
try {
const did = await resolveHandle(params.repo as Handle);
-
navigate(location.pathname.replace(params.repo!, did));
+
navigate(location.pathname.replace(params.repo!, did), { replace: true });
return;
} catch {
try {
const nsid = params.repo as Nsid;
const res = await resolveLexiconAuthority(nsid);
-
navigate(`/at://${res}/com.atproto.lexicon.schema/${nsid}`);
+
navigate(`/at://${res}/com.atproto.lexicon.schema/${nsid}`, { replace: true });
return;
} catch {
-
navigate(`/${did}`);
+
navigate(`/${did}`, { replace: true });
return;
}
}