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