Skip to content

Commit a332771

Browse files
Vega, ObedVega, Obed
authored andcommitted
fix/select edition behavior
1 parent 8074daf commit a332771

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/SelectComponent/SelectComponent.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export default function SelectComponent() {
88
const location = useLocation();
99
const normalizePath = (path) => path.replace(/\/$/, '');
1010
const currentPath = normalizePath(location.pathname);
11+
const aiUnlimitedUrl = useBaseUrl('/ai-unlimited/install-ai-unlimited');
12+
const fabricUrl = useBaseUrl('/ai-unlimited/fabric/get-started');
13+
1114
const pathsNoAlert = normalizePath(`/quickstarts/`);
1215
const shouldDisplayAlert = !currentPath.includes(pathsNoAlert);
1316

@@ -38,9 +41,9 @@ export default function SelectComponent() {
3841
}
3942

4043
if (selectedIndex === '0') {
41-
window.location.href = '/ai-unlimited/install-ai-unlimited';
44+
window.location.href = aiUnlimitedUrl;
4245
} else if (selectedIndex === '1') {
43-
window.location.href = '/ai-unlimited/fabric/get-started';
46+
window.location.href = fabricUrl;
4447
}
4548
};
4649

0 commit comments

Comments
 (0)