fix: redirect /settings to /settings/preferences

Move Profile page to /settings/profile and add a 302 redirect from
/settings to /settings/preferences so the first settings tab is
Preferences, not Profile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Frederic Cabassut
2026-03-10 15:10:31 +01:00
co-authored by Claude Opus 4.6
parent 93a632e78a
commit 02a6a3e6c6
4 changed files with 10 additions and 5 deletions
+3 -3
View File
@@ -114,8 +114,8 @@ test.describe('Settings — API Key Management', () => {
// When the user clicks the Settings link in the sidebar
await page.getByTestId('settings-link').click();
// Then the settings page is shown
await expect(page).toHaveURL('/settings');
// Then the settings page redirects to preferences
await expect(page).toHaveURL('/settings/preferences');
await expect(page.getByRole('heading', { name: 'Settings' })).toBeVisible();
});
@@ -134,6 +134,6 @@ test.describe('Settings — API Key Management', () => {
// When the user clicks back to Profile
await page.getByRole('link', { name: 'Profile' }).click();
await expect(page).toHaveURL('/settings');
await expect(page).toHaveURL('/settings/profile');
});
});