Skip to content
Discussion options

You must be logged in to vote

I solved the issue by not using the asPath: I instead used the pathname alongside the spread operator as follow:

url = !isEmpty(keyword.trim())
     ? {
        pathname,
        query: { ...query, search: keyword },
     }: {
        pathname: page,
     };

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by coolbeatz71
Comment options

You must be logged in to vote
1 reply
@coolbeatz71
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #16228 on August 16, 2020 14:00.