fix autolinks for ' (Prime) cases

This commit is contained in:
Johannes Kirschbauer 2024-01-10 13:14:42 +01:00 committed by Johannes Kirschbauer
parent 4a72037d4b
commit 4e54cf5989

View File

@ -81,7 +81,7 @@ export function SearchInput(props: SearchInputProps) {
if (reason === "reset" && e) {
console.log({ e, value, reason });
if (value) {
router.push(`/f/${value.split(".").join("/")}`);
router.push(`/f/${value.split(".").join("/")}`.split(" ")[0]);
} else {
handleSubmit(value);
}