Hi, I have a /blog page on my website that includes a page searchParam for pagination. Since I can calculate the total number of pages, I thought, 'Great! I'll use SSG.' But if I understand correctly, SSG only works with path parameters instead of query parameters, right? If so, is it considered best practice for SEO to replace /blog?page=2 with /blog/2?
#is it possible to do SSG with page searchParam for pagination?
1 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
Yes, I would use blog/[slug]/page.tsx, and then you can use generateStaticParams to pre-render
Actually, seo works with query params, it's a new thing i discovered on my portfolio @rancid hull
Basically my portfolio uses query params to show designs for specific projects
Notice the value=vibeify
It will open that directly
Try it out
But yes idk how to recreate it, so usually I would recommend path params.. but if you want to use search params google might index those sometimes
Also no you can't ssg search params
thanks guys, i'll use /blog/pages/[page]/page.tsx
Sure thing, mark an answer
✅ Success!
This question has been marked as answered! If you have any other questions, feel free to create another post
Jump to answer
[Click here](#1340718554219020399 message)
personally i'd still use search params and use unstable_cache to cache it so it's effectively static