Skip to content

How do i append URL GET parameters? #507

Answered by tannerlinsley
livevsonline asked this question in Q&A
Discussion options

You must be logged in to vote

Yep. You'll want to check out this example: https://tanstack.com/router/v1/docs/examples/react/kitchen-sink-single-file?file=src%2Fmain.tsx and look for a calls to navigate(). You can use the navigate function to update the URL without changing paths by simply not passing a new path and only passing the search option. If you don't want to make a new entry in the history stack, you can also pass replace: true.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tannerlinsley
Comment options

@livevsonline
Comment options

@livevsonline
Comment options

Answer selected by livevsonline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants