fix(front-end): redirect
All checks were successful
Build and Deploy / test-backend (push) Successful in 40s
Build and Deploy / test-frontend (push) Successful in 1m5s
Build and Deploy / build-and-push (push) Successful in 1m19s
Build and Deploy / deploy (push) Successful in 22s

This commit is contained in:
2026-03-22 22:41:12 +01:00
parent cc343ee27c
commit b317196217
6 changed files with 117 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
import { resolvePublicRedirectTarget } from './server-routing';
describe('server routing redirects', () => {
it('redirects the root path to the default language', () => {
expect(resolvePublicRedirectTarget('/')).toBe('/it');
it('does not handle the root path because it is resolved separately', () => {
expect(resolvePublicRedirectTarget('/')).toBeNull();
});
it('redirects unprefixed public pages to the default language', () => {