Skip to content

Commit

Permalink
Update webhook url formation
Browse files Browse the repository at this point in the history
  • Loading branch information
letscode-u committed Mar 26, 2021
1 parent aa45472 commit e951273
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ public function getBaseConfigParam($param)
* @param string $route
* @return string
*/
public function getHostUrl($route = '')
public function getHostUrl($route = '', $params = ['_direct' => null])
{
return $this->_getUrl($route, ['_direct' => null]);
return $this->_getUrl($route, $params);
}

/**
Expand All @@ -138,7 +138,10 @@ public function getNotificationUrl($clientId, $event)
'event' => $event,
'clientId' => $clientId,
));
return $this->getHostUrl(DATA::WEBHOOK_NOTIFICATION_URL) . '?' . $query;
return $this->getHostUrl(DATA::WEBHOOK_NOTIFICATION_URL, [
'_nosid' => true,
'_query' => $query,
]);
}

/**
Expand Down

0 comments on commit e951273

Please sign in to comment.