Skip to content

Commit

Permalink
add / after ENV.publicUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvibhu20 committed May 14, 2024
1 parent f56ee51 commit c10544d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/pods/components/intermediate-contest-view/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
2 changes: 1 addition & 1 deletion app/pods/contests/contest/index/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}

0 comments on commit c10544d

Please sign in to comment.