| @@ 378-390 (lines=13) @@ | ||
| 375 | { |
|
| 376 | $redirects = $pageView->getRedirects(); |
|
| 377 | ||
| 378 | foreach ($redirects as $redirect) |
|
| 379 | { |
|
| 380 | $redirectPageView = BasePageView::createRedirect( |
|
| 381 | $redirect, |
|
| 382 | $pageView->getPermalink(), |
|
| 383 | $this->redirectTemplate |
|
| 384 | ); |
|
| 385 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 386 | 'site' => $this->configuration->getConfiguration(), |
|
| 387 | ]); |
|
| 388 | ||
| 389 | $this->compileStaticPageView($redirectPageView); |
|
| 390 | } |
|
| 391 | } |
|
| 392 | ||
| 393 | /** |
|
| @@ 411-423 (lines=13) @@ | ||
| 408 | * @var int $index |
|
| 409 | * @var ExpandedValue $redirect |
|
| 410 | */ |
|
| 411 | foreach ($repeaterRedirect as $index => $redirect) |
|
| 412 | { |
|
| 413 | $redirectPageView = BasePageView::createRedirect( |
|
| 414 | $redirect->getEvaluated(), |
|
| 415 | $permalinks[$index]->getEvaluated(), |
|
| 416 | $this->redirectTemplate |
|
| 417 | ); |
|
| 418 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 419 | 'site' => $this->configuration->getConfiguration(), |
|
| 420 | ]); |
|
| 421 | ||
| 422 | $this->compilePageView($redirectPageView); |
|
| 423 | } |
|
| 424 | } |
|
| 425 | } |
|
| 426 | ||