With the rewrites configuration in next.config.js,
any route that does not exist is rewritten to /foo.
| URL | Expected result | Actual result |
|---|---|---|
| / | This page | This page |
| /foo | FOO | FOO |
| /bar | BAR | BAR |
| /not-existing-route | FOO | FOO |
| /en | This page | This page |
| /en/foo | FOO | FOO |
| /en/bar | BAR | BAR |
| /en/non-existing-route | FOO | FOO |
However, the behavior seems to be bugged for the frontpage,
when adding GET params combined with i18n path.
| URL | Expected result | Actual result |
|---|---|---|
| /?param=something | This page | This page |
| /foo?param=something | FOO | FOO |
| /bar?param=something | BAR | BAR |
| /non-existing-route?param=something | FOO | FOO |
| /en?param=something | This page | FOO |
| /en/foo?param=something | FOO | FOO |
| /en/bar?param=something | BAR | BAR |
| /en/non-existing-route?param=something | FOO | FOO |