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

What is the equivalent of browserHistory.push(path) for client redirect without next/link? #430

Closed
YarivGilad opened this issue Dec 19, 2016 · 2 comments

Comments

@YarivGilad
Copy link

Sometimes you want to redirect grammatically after user interaction / redux action fired.
What is the equivalent of browserHistory.push(path) to allow client-side redirects without using the naxt/link component?

@arunoda
Copy link
Contributor

arunoda commented Dec 19, 2016

We've a new PR for this: #429 :)

For now check this: https://github.com/zeit/next.js#routing
(At the end, you'll see how to get access to the router and use it)

@arunoda arunoda closed this as completed Dec 19, 2016
@YarivGilad
Copy link
Author

@arunoda The PR is exactly what I mean, I hope it will be merged promptly.
As for getting access to the router currently - I have checked the routing part of the readme and wasn't able to locate the way to access it. Would you be so kind and be more specific?
Thank you!
Ajar

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
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

2 participants