Streamline adding params to app routes

This commit is contained in:
schroda
2025-05-21 01:55:32 +02:00
parent 7ae7c3e768
commit f6b4ed8f56
5 changed files with 26 additions and 22 deletions

View File

@@ -165,7 +165,7 @@ const SourceSearchPreview = React.memo(
<Card sx={{ mb: 1 }}>
<CardActionArea
component={Link}
to={`${AppRoutes.sources.childRoutes.browse.path(id)}?query=${searchString}`}
to={AppRoutes.sources.childRoutes.browse.path(id, searchString)}
sx={{ p: 3 }}
>
<Typography variant="h5">{displayName}</Typography>