| @@ 360-372 (lines=13) @@ | ||
| 357 | { |
|
| 358 | $redirects = $pageView->getRedirects(); |
|
| 359 | ||
| 360 | foreach ($redirects as $redirect) |
|
| 361 | { |
|
| 362 | $redirectPageView = BasePageView::createRedirect( |
|
| 363 | $redirect, |
|
| 364 | $pageView->getPermalink(), |
|
| 365 | $this->redirectTemplate |
|
| 366 | ); |
|
| 367 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 368 | 'site' => $this->configuration->getConfiguration(), |
|
| 369 | ]); |
|
| 370 | ||
| 371 | $this->compileStaticPageView($redirectPageView); |
|
| 372 | } |
|
| 373 | } |
|
| 374 | ||
| 375 | /** |
|
| @@ 393-405 (lines=13) @@ | ||
| 390 | * @var int |
|
| 391 | * @var ExpandedValue $redirect |
|
| 392 | */ |
|
| 393 | foreach ($repeaterRedirect as $index => $redirect) |
|
| 394 | { |
|
| 395 | $redirectPageView = BasePageView::createRedirect( |
|
| 396 | $redirect->getEvaluated(), |
|
| 397 | $permalinks[$index]->getEvaluated(), |
|
| 398 | $this->redirectTemplate |
|
| 399 | ); |
|
| 400 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 401 | 'site' => $this->configuration->getConfiguration(), |
|
| 402 | ]); |
|
| 403 | ||
| 404 | $this->compilePageView($redirectPageView); |
|
| 405 | } |
|
| 406 | } |
|
| 407 | } |
|
| 408 | ||