From c10544d5f26d22965d60582015de2543366c3b30 Mon Sep 17 00:00:00 2001 From: Vibhu Dujari Date: Tue, 14 May 2024 18:05:58 +0530 Subject: [PATCH] add / after ENV.publicUrl --- app/pods/components/intermediate-contest-view/component.js | 2 +- app/pods/contests/contest/index/controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pods/components/intermediate-contest-view/component.js b/app/pods/components/intermediate-contest-view/component.js index 72f3a8b..2768499 100644 --- a/app/pods/components/intermediate-contest-view/component.js +++ b/app/pods/components/intermediate-contest-view/component.js @@ -117,6 +117,6 @@ export default class IntermediateContestComponent extends Component { } @action async openTestInNewWindow() { - window.open(`${ENV.publicUrl}contests/${this.contest.id}/attempt/`, 'popup') + window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, 'popup') } } diff --git a/app/pods/contests/contest/index/controller.js b/app/pods/contests/contest/index/controller.js index 714e09d..16de815 100644 --- a/app/pods/contests/contest/index/controller.js +++ b/app/pods/contests/contest/index/controller.js @@ -62,6 +62,6 @@ export default class IndexController extends Controller { } @action onAfterCreate() { - window.open(`${ENV.publicUrl}contests/${this.contest.id}/attempt/`, 'popup') + window.open(`${ENV.publicUrl}/contests/${this.contest.id}/attempt/`, 'popup') } }