next('route') not working
See original GitHub issueI copy the documentation code from here
http://expressjs.com/en/guide/using-middleware.html#middleware.application
and change res.render
to res.send
when I type localhost:3000/user/0 I still get the response of ‘regular’ on the page
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Links randomly not working and the Routing system is broken ...
Tried to open links by importing next.js router and onClick handler; Upgrading the next js from ver 10.x to the latest version stable...
Read more >Client side routing not working in NextJS - Stack Overflow
How about trying this way. I am using next 9.2.1, and it works fine. <Link href={{pathname: "/discover/[categoryId]", query: { categoryId: 0 }}} ...
Read more >Routing: Introduction - Next.js
The Next.js router allows you to do client-side route transitions between pages, similar to a single-page application. A React component called Link is...
Read more >Client-Side Routing In Next.js - Smashing Magazine
Next.js has a file-based routing system in which each page automatically becomes a route based on its file name. This article will guide...
Read more >Using middleware - Express.js
To skip the rest of the middleware functions from a router middleware stack, call next('route') to pass control to the next route. NOTE:...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PR https://github.com/expressjs/expressjs.com/pull/719 recently merged seems to have broken the example. Just change the
===
to just==
or change the0
to'0'
. I made a note to audit that PR for any other examples that may have been broken.Yeah this is my fault, sorry about that, fix in expressjs/expressjs.com#731