Only root route returns
See original GitHub issuehttps://netlify-express.netlify.com/
renders,
https://netlify-express.netlify.com/another
returns a 404
.
I’ve been trying to build a simple app using this as a boilerplate, and none of my defined routes work apart from /. Any ideas?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
React-Router V6 issue, only the root "/" route works, any other ...
What I find puzzling is that when I access these endpoints by directly typing in the url in the browser search bar it...
Read more >Router tutorial: tour of heroes - Angular
Only call RouterModule.forRoot() in the root AppRoutingModule (or the AppModule if that's where you register top level application routes). In any other module ......
Read more >Routing - Laravel - The PHP Framework For Web Artisans
If your route only needs to return a view, you may use the Route::view method. ... Make sure to give the route's corresponding...
Read more >Routing • Docs • SvelteKit
src/routes is the root route; src/routes/about creates an /about route ... If your load function can only run on the server — for...
Read more >Rails Routing from the Outside In - Rails Edge Guides
Rails.application.routes.draw do resources :brands, only: [:index, ... GET, /photos/new, photos#new, return an HTML form for creating a new photo.
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
I haven’t had a chance to try it yet, but a rewrite rule might do the trick: https://www.netlify.com/docs/redirects/#rewrites-and-proxying
I have the same issue but only locally. When i deploy to Netlify the other routes is working fine but locally they don’t work.
/another will not work locally. Locally it will always go to root path. Any idea why? 😃