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