File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
components/supervisor/frontend/src Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
+ * Copyright (c) 2024 Gitpod GmbH. All rights reserved.
3
3
* Licensed under the GNU Affero General Public License (AGPL).
4
4
* See License.AGPL.txt in the project root for license information.
5
5
*/
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ import * as IDEWorker from "./ide/ide-worker";
56
56
import * as IDEWebSocket from "./ide/ide-web-socket" ;
57
57
import { SupervisorServiceClient } from "./ide/supervisor-service-client" ;
58
58
import * as LoadingFrame from "./shared/loading-frame" ;
59
- import { workspaceUrl } from "./shared/urls" ;
59
+ import { serverUrl , workspaceUrl } from "./shared/urls" ;
60
60
import { getExperimentsClient } from "./experiments/client" ;
61
61
62
62
window . gitpod = { } as any ;
@@ -300,12 +300,15 @@ LoadingFrame.load().then(async (loading) => {
300
300
} ) ( ) ;
301
301
} ) ;
302
302
303
+ const gitpodHost = serverUrl . url . host ;
303
304
async function maybeRedirectToCustomUrl ( info : IDEFrontendDashboardService . Info ) {
304
305
const isDataOps = await experimentsClient . getValueAsync ( "dataops" , false , {
305
306
user : { id : info . loggedUserId } ,
307
+ gitpodHost,
306
308
} ) ;
307
309
const dataOpsRedirectUrl = await experimentsClient . getValueAsync ( "dataops_redirect_url" , "undefined" , {
308
310
user : { id : info . loggedUserId } ,
311
+ gitpodHost,
309
312
} ) ;
310
313
311
314
if ( ! isDataOps ) {
You can’t perform that action at this time.
0 commit comments