Skip to content

Commit 870dbb2

Browse files
committed
Include name, page and pageData when reading nested redirects - important as we save this to a store as the entity and it will clean this important data on front end when modal shows otherwise
1 parent e8cc444 commit 870dbb2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Entity/Core/Route.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,18 @@ class Route
7676
private string $path = '';
7777

7878
#[Assert\NotNull]
79+
#[Groups(['Route:redirect:read'])]
7980
private string $name;
8081

8182
private ?Route $redirect = null;
8283

8384
#[Groups(['Route:redirect:read'])]
8485
private Collection $redirectedFrom;
8586

86-
#[Groups(['Route:manifest:read'])]
87+
#[Groups(['Route:manifest:read', 'Route:redirect:read'])]
8788
private ?Page $page = null;
8889

89-
#[Groups(['Route:manifest:read'])]
90+
#[Groups(['Route:manifest:read', 'Route:redirect:read'])]
9091
private ?AbstractPageData $pageData = null;
9192

9293
public function __construct()

0 commit comments

Comments
 (0)