| @@ 398-410 (lines=13) @@ | ||
| 395 | { |
|
| 396 | $redirects = $pageView->getRedirects(); |
|
| 397 | ||
| 398 | foreach ($redirects as $redirect) |
|
| 399 | { |
|
| 400 | $redirectPageView = BasePageView::createRedirect( |
|
| 401 | $redirect, |
|
| 402 | $pageView->getPermalink(), |
|
| 403 | $this->redirectTemplate |
|
| 404 | ); |
|
| 405 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 406 | 'site' => $this->container->get(Configuration::class)->getConfiguration(), |
|
| 407 | ]); |
|
| 408 | ||
| 409 | $this->compileStaticPageView($redirectPageView); |
|
| 410 | } |
|
| 411 | } |
|
| 412 | ||
| 413 | /** |
|
| @@ 431-443 (lines=13) @@ | ||
| 428 | * @var int $index |
|
| 429 | * @var ExpandedValue $redirect |
|
| 430 | */ |
|
| 431 | foreach ($repeaterRedirect as $index => $redirect) |
|
| 432 | { |
|
| 433 | $redirectPageView = BasePageView::createRedirect( |
|
| 434 | $redirect->getEvaluated(), |
|
| 435 | $permalinks[$index]->getEvaluated(), |
|
| 436 | $this->redirectTemplate |
|
| 437 | ); |
|
| 438 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 439 | 'site' => $this->container->get(Configuration::class)->getConfiguration(), |
|
| 440 | ]); |
|
| 441 | ||
| 442 | $this->compilePageView($redirectPageView); |
|
| 443 | } |
|
| 444 | } |
|
| 445 | } |
|
| 446 | ||