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