What is the full API for the object argument of Router.push (and does it support "as")? #14996
-
I'm looking to use Router.push's object argument to send
However, the above code does not properly apply the Would appreciate being pointed in the right direction or the docs being updated to include this information. Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The URL object is the same as next/link as mentioned in the With URL object section of
Therefore, |
Beta Was this translation helpful? Give feedback.
-
This is exactly what I was hoping to find:
I had attempted this with the "as" argument in object form ,which obviously did not work. If you like, I would be happy to open a PR which might update the docs to make this functionality a little easier to discover. |
Beta Was this translation helpful? Give feedback.
The URL object is the same as next/link as mentioned in the With URL object section of
next/router
docs.Therefore,
as
is not supported with the URL object.