Skip to content

Commit

Permalink
Fix log src url
Browse files Browse the repository at this point in the history
  • Loading branch information
redblom committed May 23, 2024
1 parent 787e052 commit 4156187
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ private function getWayfItems(string $token, string $providerEndpoint): array
$providerEndpointParam = MeshRegistryService::PARAM_NAME_PROVIDER_ENDPOINT;
$link = "$serviceEndpoint/$handleInviteEndpoint?$tokenParam=$token&$providerEndpointParam=$providerEndpoint";
// discover url of institute logo
$fragments = explode("/apps/invitation", $invitationServiceProvider->getEndpoint());
$logoUrl = $fragments[0] . '/dashboard/images/logo.png';
$url = parse_url($invitationServiceProvider->getEndpoint());
$host = $url['host'];
$scheme = $url['scheme'];
$logoUrl = "$scheme://$host/dashboard/images/logo.png";
$wayfItems[$i] = [
"logoUrl" => $logoUrl,
"handleInviteUrl" => $link,
Expand Down

0 comments on commit 4156187

Please sign in to comment.