| @@ 366-378 (lines=13) @@ | ||
| 363 | { |
|
| 364 | $redirects = $pageView->getRedirects(); |
|
| 365 | ||
| 366 | foreach ($redirects as $redirect) |
|
| 367 | { |
|
| 368 | $redirectPageView = BasePageView::createRedirect( |
|
| 369 | $redirect, |
|
| 370 | $pageView->getPermalink(), |
|
| 371 | $this->redirectTemplate |
|
| 372 | ); |
|
| 373 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 374 | 'site' => $this->configuration->getConfiguration(), |
|
| 375 | ]); |
|
| 376 | ||
| 377 | $this->compileStaticPageView($redirectPageView); |
|
| 378 | } |
|
| 379 | } |
|
| 380 | ||
| 381 | /** |
|
| @@ 399-411 (lines=13) @@ | ||
| 396 | * @var int |
|
| 397 | * @var ExpandedValue $redirect |
|
| 398 | */ |
|
| 399 | foreach ($repeaterRedirect as $index => $redirect) |
|
| 400 | { |
|
| 401 | $redirectPageView = BasePageView::createRedirect( |
|
| 402 | $redirect->getEvaluated(), |
|
| 403 | $permalinks[$index]->getEvaluated(), |
|
| 404 | $this->redirectTemplate |
|
| 405 | ); |
|
| 406 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 407 | 'site' => $this->configuration->getConfiguration(), |
|
| 408 | ]); |
|
| 409 | ||
| 410 | $this->compilePageView($redirectPageView); |
|
| 411 | } |
|
| 412 | } |
|
| 413 | } |
|
| 414 | ||