question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

next('route') not working

See original GitHub issue

I copy the documentation code from here http://expressjs.com/en/guide/using-middleware.html#middleware.application 2016-11-06_09-45-49

and change res.render to res.send 2016-11-06_09-52-38

when I type localhost:3000/user/0 I still get the response of ‘regular’ on the page

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dougwilsoncommented, Nov 6, 2016

PR https://github.com/expressjs/expressjs.com/pull/719 recently merged seems to have broken the example. Just change the === to just == or change the 0 to '0'. I made a note to audit that PR for any other examples that may have been broken.

0reactions
LinusUcommented, Nov 6, 2016

Yeah this is my fault, sorry about that, fix in expressjs/expressjs.com#731

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found