File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/components/SelectComponent Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments