Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal like Reddit/Twitter nested in a dynamic route #12566

Closed
marjorg opened this issue May 6, 2020 · 3 comments
Closed

Modal like Reddit/Twitter nested in a dynamic route #12566

marjorg opened this issue May 6, 2020 · 3 comments

Comments

@marjorg
Copy link
Contributor

marjorg commented May 6, 2020

Feature request

Is your feature request related to a problem? Please describe.

Not sure if this is intended or a bug, so I'll give it a try with a feature request.

What I'm trying to do is open a search result in a modal while changing the url from i.e. example.com/posts/search/hello to example.com/posts/[ID], but it just navigates to the page instead. If I change the search page to not be a dynamic route ([term].tsx to just term.tsx) it opens the modal as expected.

Structure:

/pages
    /posts
        [postId].tsx
        /search
            [term].tsx

Describe alternatives you've considered

A flow like this would be achievable with a custom server, but I would prefer to keep all the performance optimizations.

Additional context

Seems like some other people have encountered the same here: #8023

@Timer
Copy link
Member

Timer commented May 6, 2020

Duplicate of #11625

@Timer Timer closed this as completed May 6, 2020
@marjorg
Copy link
Contributor Author

marjorg commented May 6, 2020

@Timer Great, thanks! Does the docs mention this anywhere that I missed?

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants