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.

Default route not working

See original GitHub issue

Expected behavior

Defining a route for '/404' should set a default route (not found)

Actual behavior

Default route did not work for me.

Steps to reproduce behavior

Set these routes

app.route('/', mainView)
app.route('/404', notFoundView)
app.mount('body')

Then visit any route different for '/', it will render mainView anyway.

I think it might be related with wayfarer#44.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
YerkoPalmacommented, May 9, 2017

@expalmer just tried that, and it works as a default view. IMO this is still a workaround more than a solution, but is good to know.

1reaction
expalmercommented, May 5, 2017

What about app.route('/*', notFoundView)… It works for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Default route not working - Cisco Community
Hi,. It could be that you are missing NATing here. Try below configuration on R10 and check how it goes. interface FastEthernet0/0. ip...
Read more >
asp.net mvc 3 - Default route not working - Stack Overflow
Default route not working ; Try changing the parameter type of id from int to string in the Default action method. – SliverNinja...
Read more >
7 Ways to Fix “Default Gateway Is Not Available” Error
Right click on the network caption. ; Go to the device manager on your PC. · Download the suitable software. ; Go to...
Read more >
Default gateway route doesn't appear in Routing Table
Default gateway route doesn't appear in the Routing Table after you re-add a Routing and Remote Access interface.
Read more >
OSPF Default route not working - Discussions - Sophos Firewall
OSPF Default route not working ... I have my XG communicating with A Fortinet using OSPF. The routes are all being picked up...
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