| @@ 343-355 (lines=13) @@ | ||
| 340 | { |
|
| 341 | $redirects = $pageView->getRedirects(); |
|
| 342 | ||
| 343 | foreach ($redirects as $redirect) |
|
| 344 | { |
|
| 345 | $redirectPageView = BasePageView::createRedirect( |
|
| 346 | $redirect, |
|
| 347 | $pageView->getPermalink(), |
|
| 348 | $this->redirectTemplate |
|
| 349 | ); |
|
| 350 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 351 | 'site' => $this->configuration->getConfiguration(), |
|
| 352 | ]); |
|
| 353 | ||
| 354 | $this->compileStaticPageView($redirectPageView); |
|
| 355 | } |
|
| 356 | } |
|
| 357 | ||
| 358 | /** |
|
| @@ 376-388 (lines=13) @@ | ||
| 373 | * @var int |
|
| 374 | * @var ExpandedValue $redirect |
|
| 375 | */ |
|
| 376 | foreach ($repeaterRedirect as $index => $redirect) |
|
| 377 | { |
|
| 378 | $redirectPageView = BasePageView::createRedirect( |
|
| 379 | $redirect->getEvaluated(), |
|
| 380 | $permalinks[$index]->getEvaluated(), |
|
| 381 | $this->redirectTemplate |
|
| 382 | ); |
|
| 383 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 384 | 'site' => $this->configuration->getConfiguration(), |
|
| 385 | ]); |
|
| 386 | ||
| 387 | $this->compilePageView($redirectPageView); |
|
| 388 | } |
|
| 389 | } |
|
| 390 | } |
|
| 391 | ||