Skip to content

Commit 757546f

Browse files
authored
fix(seer): Fix normalized URLs for Seer settings tabs (#105202)
For new Seer settings, the tab URLs were not normalized, causing additional redirects.
1 parent 01d9460 commit 757546f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

static/gsApp/views/seerAutomation/components/settingsPageTabs.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ export default function SettingsPageTabs() {
1515
const {pathname} = useLocation();
1616

1717
const tabs: Array<[string, Path]> = [
18-
[t('Settings'), `/settings/${organization.slug}/seer/`],
19-
[t('Projects'), `/settings/${organization.slug}/seer/projects/`],
20-
[t('Repos'), `/settings/${organization.slug}/seer/repos/`],
18+
[t('Settings'), normalizeUrl(`/settings/${organization.slug}/seer/`)],
19+
[t('Projects'), normalizeUrl(`/settings/${organization.slug}/seer/projects/`)],
20+
[t('Repos'), normalizeUrl(`/settings/${organization.slug}/seer/repos/`)],
2121
];
2222

2323
return (
2424
<Container borderBottom="primary">
2525
<Tabs onChange={key => navigate(key)} value={pathname}>
2626
<TabList>
2727
{tabs.map(([label, to]) => (
28-
<TabList.Item key={normalizeUrl(to)} to={to}>
28+
<TabList.Item key={to} to={to}>
2929
{label}
3030
</TabList.Item>
3131
))}

0 commit comments

Comments
 (0)