Default route not working
See original GitHub issueExpected 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:
- Created 6 years ago
- Comments:7 (6 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@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.
What about
app.route('/*', notFoundView)
… It works for me