Skip to content

Commit

Permalink
[BUGFIX] remove slash from href
Browse files Browse the repository at this point in the history
  • Loading branch information
Gernott committed Feb 16, 2022
1 parent dcac55f commit f830cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function getMailsAsJson(ServerRequestInterface $request): Response
$attachementsHtml = [];
foreach ($mailAttachements as $attachement) {
if ($attachement['url']) {
$attachementsHtml[] = '<a href="/' . $attachement['url'] . '" target="_blank">' . $attachement['name'] . '</a>';
$attachementsHtml[] = '<a href="' . $attachement['url'] . '" target="_blank">' . $attachement['name'] . '</a>';
} else {
$attachementsHtml[] = '<span class="bg-danger" title="File is missing in filesystem">' . $attachement['name'] . '</span>';
}
Expand Down

0 comments on commit f830cc0

Please sign in to comment.