I'm interested in printing or gaining access the current path for rendering a breadcrumb serverside.
I've tried gaining access to the current route via 'next/router' but it's a client-only package?
How would you suggest to do this?
@ndelangen the url is provided in getInitialProps. After v3 we're going to add a HOC which allows you to get the route on server/client side https://github.com/zeit/next.js/pull/2352
You could use props.url.pathname to do this. There is a PR open #2352 for a withRoute HOC which may help you when that merges 馃槑
same issue.
Same Issue
How can you possibly have the same issue as a 12 months old resolved issue 馃