Ability to use "as" in new App Router #63115
Unanswered
mrjackyliang
asked this question in
App Router
Replies: 2 comments
-
|
Yeah, I used to be able to do this, now I can't 😞 const pathname = `/${path}/${item.author}/${item.slug}`;
router.push(
{
pathname: pathname,
query: {
hiddenInfo: "ugly stuff that shouldn't be seen",
},
},
pathname
); |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yes this would be great to have. My use case is for the modal interception. When a user loads an url that's nested in a modal, eg: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I upgraded one of my apps that is based on a slider, the new App Router completely broke things for me and the design I built around it. Using the pages router, I can store the state into the URL (more details below), and I want to hide the state away from the user.
Before we get to the idea of "bad practice" or "in favor of", first see what the use cases are here:
Beta Was this translation helpful? Give feedback.
All reactions