Next.js Discord

Discord Forum

How can I append query to uri?

Unanswered
Tomistoma posted this in #help-forum
Open in Discord
TomistomaOP
Howdy! I've been stuck on this for past hour or so. Have no issues with routing or applying search params when via a button or link client-side but there is the scenario of the site visitor manually entering the URL https://www.site.com/cabins

I would like to add the append the follow as default
?category=all
so that the cabin cards will render. Right now I managed to ge the correct tab to be active state but am unable to make the cards render.

Anyone have an idea? I have tried multiple approaches with no luck!

Many thanks in advanced!

1 Reply

TomistomaOP
Still dealing with this issue, if anyone can give some feedback, will be greatly appreciated!