diff --git a/lumina/components/Search.tsx b/lumina/components/Search.tsx index 82a2c9e..8b828a4 100644 --- a/lumina/components/Search.tsx +++ b/lumina/components/Search.tsx @@ -10,12 +10,14 @@ import { useRouter } from 'next/navigation'; export function Search() { const router = useRouter(); - const [inputValue, setInputValue] = useState(''); + let [inputValue, setInputValue] = useState(''); const [isLoading, setIsLoading] = useState(false); // Neuer Zustand für das Laden const calculateAndRedirect = async () => { setIsLoading(true); + inputValue = inputValue.replace('nostr://',''); + if (inputValue.startsWith('npub')) { // npub Search // window.location.href = `/profile/${inputValue}`; router.push(`/profile/${inputValue}`);