You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lots of confusing bugs emerge due to the catchall/wildcard/splat route serving HTML. The most common example is /wrong/path/to/some.js raising "SyntaxError: unexpected token <" in the client.
Recommendation:
limit catchall to only known route patterns (e.g. /albums, /albums/:id, /albums/:id/songs, etc).
but add a final catchall that responds with a status 404.
The text was updated successfully, but these errors were encountered:
Lots of confusing bugs emerge due to the catchall/wildcard/splat route serving HTML. The most common example is
/wrong/path/to/some.js
raising "SyntaxError: unexpected token<
" in the client.Recommendation:
/albums
,/albums/:id
,/albums/:id/songs
, etc).The text was updated successfully, but these errors were encountered: