Document the _parent route attribute for tab-less routes - #2162
Merged
kpodemski merged 1 commit intoAug 24, 2026
Merged
Conversation
M0rgan01
commented
Aug 24, 2026
Contributor
| Questions | Answers |
|---|---|
| Branch? | 9.x |
| Description? | Document the _parent route attribute for tab-less routes, see PrestaShop/PrestaShop#42139 |
| Fixed ticket? | - |
| Sponsor company | - |
| _parent: admin_foo_index | ||
| ``` | ||
|
|
||
| `_parent` names another route, typically the listing route of the same entity. When the current route has no `Tab`, the sidebar, breadcrumb, and toolbar fall back to the `Tab` of the route named in `_parent`. |
Member
There was a problem hiding this comment.
Suggested change
| `_parent` names another route, typically the listing route of the same entity. When the current route has no `Tab`, the sidebar, breadcrumb, and toolbar fall back to the `Tab` of the route named in `_parent`. | |
| `_parent` names another route, typically the listing route of the same entity. When the current route has no related `Tab` in the database, the sidebar, breadcrumb, and toolbar fall back to the `Tab` of the route named in `_parent`. |
kpodemski
reviewed
Aug 24, 2026
| `_parent` names another route, typically the listing route of the same entity. When the current route has no `Tab`, the sidebar, breadcrumb, and toolbar fall back to the `Tab` of the route named in `_parent`. | ||
|
|
||
| {{% notice warning %}} | ||
| Do not add `_legacy_controller` to a route only to make the sidebar or breadcrumb work. `_legacy_controller` is reserved for controllers actually migrated from a legacy `AdminXController`: it also drives permission checks and `Link::getAdminLink()` resolution. Removing it from a migrated page breaks both. For a fully native route, use `_parent` instead. It has no effect on permissions or link generation: it's purely used for Back Office navigation rendering. |
Contributor
There was a problem hiding this comment.
in this context, what do you mean native route? Core's page? Route declared by a module? Both?
M0rgan01
force-pushed
the
Document-the-_parent-route-attribute-for-tab-less-routes
branch
from
August 24, 2026 14:53
523059b to
c295e80
Compare
Quetzacoalt91
approved these changes
Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.