mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: migrate urls
This commit is contained in:
1 parent
165a9cd719
commit
b90b355f8f
18 files changed
+37
-44
No files matched your search
@@ -18,7 +18,7 @@ export function QuickLink({ topResult }: QuickLinkProps) {
|
||||
|
||||
return (
|
||||
<TextField.Slot>
|
||||
<LinkI18n locale={locale} href={`/tools/tankopedia/${topResult.id}`}>
|
||||
<LinkI18n locale={locale} href={`/tanks/${topResult.slug}`}>
|
||||
<Button variant="ghost">
|
||||
{unwrap(topResult.name)} <CaretRightIcon />
|
||||
</Button>
|
||||
|
||||
@@ -57,7 +57,7 @@ export function SearchBar({ topResult, skeleton, onSelect }: SearchBarProps) {
|
||||
if (onSelect) {
|
||||
onSelect(topResult);
|
||||
} else {
|
||||
window.location.href = `/tools/tankopedia/${topResult.id}`;
|
||||
window.location.href = `/tanks/${topResult.slug}`;
|
||||
}
|
||||
},
|
||||
[topResult],
|
||||
|
||||
Reference in new issue
Block a user