| @@ 302-314 (lines=13) @@ | ||
| 299 | { |
|
| 300 | $redirects = $pageView->getRedirects(); |
|
| 301 | ||
| 302 | foreach ($redirects as $redirect) |
|
| 303 | { |
|
| 304 | $redirectPageView = BasePageView::createRedirect( |
|
| 305 | $redirect, |
|
| 306 | $pageView->getPermalink(), |
|
| 307 | $this->redirectTemplate |
|
| 308 | ); |
|
| 309 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 310 | 'site' => $this->configuration->getConfiguration(), |
|
| 311 | ]); |
|
| 312 | ||
| 313 | $this->compileStaticPageView($redirectPageView); |
|
| 314 | } |
|
| 315 | } |
|
| 316 | ||
| 317 | /** |
|
| @@ 335-347 (lines=13) @@ | ||
| 332 | * @var int |
|
| 333 | * @var ExpandedValue $redirect |
|
| 334 | */ |
|
| 335 | foreach ($repeaterRedirect as $index => $redirect) |
|
| 336 | { |
|
| 337 | $redirectPageView = BasePageView::createRedirect( |
|
| 338 | $redirect->getEvaluated(), |
|
| 339 | $permalinks[$index]->getEvaluated(), |
|
| 340 | $this->redirectTemplate |
|
| 341 | ); |
|
| 342 | $redirectPageView->evaluateFrontMatter([], [ |
|
| 343 | 'site' => $this->configuration->getConfiguration(), |
|
| 344 | ]); |
|
| 345 | ||
| 346 | $this->compilePageView($redirectPageView); |
|
| 347 | } |
|
| 348 | } |
|
| 349 | } |
|
| 350 | ||