|
@@ 83-85 (lines=3) @@
|
| 80 |
|
*/ |
| 81 |
|
private function rewriteToAbsoluteUrls(array $navigation): array { |
| 82 |
|
foreach ($navigation as &$entry) { |
| 83 |
|
if (0 !== strpos($entry['href'], $this->urlGenerator->getBaseUrl())) { |
| 84 |
|
$entry['href'] = $this->urlGenerator->getAbsoluteURL($entry['href']); |
| 85 |
|
} |
| 86 |
|
if (0 !== strpos($entry['icon'], $this->urlGenerator->getBaseUrl())) { |
| 87 |
|
$entry['icon'] = $this->urlGenerator->getAbsoluteURL($entry['icon']); |
| 88 |
|
} |
|
@@ 86-88 (lines=3) @@
|
| 83 |
|
if (0 !== strpos($entry['href'], $this->urlGenerator->getBaseUrl())) { |
| 84 |
|
$entry['href'] = $this->urlGenerator->getAbsoluteURL($entry['href']); |
| 85 |
|
} |
| 86 |
|
if (0 !== strpos($entry['icon'], $this->urlGenerator->getBaseUrl())) { |
| 87 |
|
$entry['icon'] = $this->urlGenerator->getAbsoluteURL($entry['icon']); |
| 88 |
|
} |
| 89 |
|
} |
| 90 |
|
return $navigation; |
| 91 |
|
} |