Skip to content

Commit

Permalink
Open links of index.php and view.php in a new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
machitgarha committed Aug 31, 2021
1 parent 67c2a58 commit 01fb8c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/PageBuilding/IndexPageBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ protected function generateOutputMainContent(): string
ViewPageBuilder::URL,
["id" => $this->courseId]
),
$instance->name
$instance->name,
["target" => "_blank"],
),
$instance->link,
];
Expand Down
4 changes: 2 additions & 2 deletions src/PageBuilding/ViewPageBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ protected function generateOutputHeading(): string

protected function generateOutputMainContent(): string
{
// TODO: Open in a new tab
return \html_writer::link(
$this->moduleInstance->link,
Util::getString("enter_meeting_link")
Util::getString("enter_meeting_link"),
["target" => "_blank"],
);
}
}

0 comments on commit 01fb8c6

Please sign in to comment.