Skip to content

Commit

Permalink
fixed building debug panel new tab link
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Mar 17, 2017
1 parent e27a319 commit 9388e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debug/Timing.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ public function getRunLink()

public function getNewTabLink()
{
$uri = $this->request->getFullUri();
$sign = strpos($uri, '?') === false ? '?' : '';
$uri = rtrim($this->request->getFullUri(), '?');
$sign = strpos($uri, '?') === false ? '?' : '&';
$newTabUrl = rtrim($uri, '&') . $sign . $this->request->getBody();

return Html::a('to new tab', $newTabUrl, ['target' => '_blank']);
Expand Down

0 comments on commit 9388e48

Please sign in to comment.