diff --git a/pages/search/[keyword].js b/pages/search/[keyword].js index 145f9a71..734bf5b4 100644 --- a/pages/search/[keyword].js +++ b/pages/search/[keyword].js @@ -24,6 +24,7 @@ const Index = props => { export async function getServerSideProps ({ params: { keyword } }) { const props = await getGlobalNotionData({ from: 'search-props', pageType: ['Post'] }) props.posts = await filterByMemCache(props.allPosts, keyword) + props.keyword = keyword return { props }